Android Utililty Methods Gregorian Calendar Format

List of utility methods to do Gregorian Calendar Format

Description

The list of methods to do Gregorian Calendar Format are organized into topic(s).

Method

Stringformat(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, ':');
    };
...
StringformatISO(GregorianCalendar calendar)
format ISO
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ").format(calendar
        .getTime());