Java Date ISO Parse parseIsoDateInput(String str)

Here you can find the source of parseIsoDateInput(String str)

Description

parse Iso Date Input

License

Apache License

Declaration

public static GregorianCalendar parseIsoDateInput(String str) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.GregorianCalendar;

public class Main {
    private static SimpleDateFormat isoDateFormatter = new SimpleDateFormat("yyyyMMdd");

    public static GregorianCalendar parseIsoDateInput(String str) throws ParseException {
        GregorianCalendar c = new GregorianCalendar();
        c.setTime(isoDateFormatter.parse(str));
        return c;
    }/*from  w  w  w.j a  v a  2  s . c om*/
}

Related

  1. parseISODate(String date)
  2. parseISODate(String date)
  3. parseIsoDate(String str)
  4. parseIsoDate2(String s)
  5. parseIsoDateAndTimeString(String aDateString, String aTimeString)
  6. parseIsoDateTime(String isoDateTime)
  7. parseISODuration(String duration)
  8. parseIsoString(String time)
  9. parseTimestampIso8601(String timestamp)