Java Utililty Methods Date Format ISO

List of utility methods to do Date Format ISO

Description

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

Method

StringtoISOString(Date date, String format, TimeZone tz)
Render date
if (format == null) {
    format = FORMAT_DATE_ISO;
if (tz == null) {
    tz = TimeZone.getDefault();
DateFormat f = new SimpleDateFormat(format);
f.setTimeZone(tz);
...
StringtoIsoTime(Date timestamp)
to Iso Time
DateFormat format = makeIsoDateFormatter();
return format.format(timestamp);
StringtoIsoTime(Date timestamp)
Convert a date to an iso timestamp
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
return sdf.format(timestamp);
StringtoStringISO8601(Calendar cal)
to String ISO
return javax.xml.bind.DatatypeConverter.printDateTime(cal);