Android Utililty Methods ISO Format to Date Convert

List of utility methods to do ISO Format to Date Convert

Description

The list of methods to do ISO Format to Date Convert are organized into topic(s).

Method

DatefromIso8601(String date)
Parses a date / time formatted according to the ISO 8601 format.
return DATE_FORMAT_ISO8601.parse(date);
Dateiso8601ToJavaDate(final String strDate)
iso To Java Date
try {
    DateFormat formatter = ISO8601Format.get();
    return formatter.parse(strDate);
} catch (ParseException e) {
    return null;
DateisoDateStringToDate(String dateString)
Converts an ISO-formatted String representation of a date to a Date object.
return new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(dateString);
Dateiso8601ToJavaDate(final String strDate)
iso To Java Date
try {
    DateFormat formatter = ISO8601Format.get();
    return formatter.parse(strDate);
} catch (ParseException e) {
    return null;