List of utility methods to do Gregorian Calendar Format
String | format(GregorianCalendar calendar) format SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'hh:mm:ss.SSSZ") { private static final long serialVersionUID = 1L; public StringBuffer format(Date date, StringBuffer toAppendTo, java.text.FieldPosition pos) { StringBuffer toFix = super.format(date, toAppendTo, pos); return toFix.insert(toFix.length() - 2, ':'); }; ... |
String | formatISO(GregorianCalendar calendar) format ISO return new SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ").format(calendar .getTime()); |