Java Parse Date parseDate(String partten, String datatime)

Here you can find the source of parseDate(String partten, String datatime)

Description

parse Date

License

Open Source License

Declaration

public static Calendar parseDate(String partten, String datatime) throws ParseException 

Method Source Code


//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.text.ParseException;
import java.util.Calendar;

public class Main {
    public static Calendar parseDate(String partten, String datatime) throws ParseException {
        java.text.SimpleDateFormat format = new java.text.SimpleDateFormat(partten);
        format.parse(datatime);//from   w w  w .  j a va  2s  . c  o  m
        return format.getCalendar();
    }
}

Related

  1. parseDate(String gameDate)
  2. parseDate(String in)
  3. parseDate(String input)
  4. parseDate(String line)
  5. parseDate(String myDate, String pattern)
  6. parseDate(String representedValue)
  7. parseDate(String s)
  8. parseDate(String s)
  9. parseDate(String s)