List of utility methods to do Calendar Format
String | toInfo(Calendar calendar) to Info return toInfo(calendar.getTime());
|
String | toShort(Calendar calendar) to Short return DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT).format(calendar.getTime());
|
String | toSimpleFormat(Calendar cal) Method toSimpleFormat. return SIMPLE_FORMAT.format(cal.getTime());
|
String | toW3C(Calendar cal) convert Calendar to w3c format, See W3C format i.e. SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss Z"); fmt.setTimeZone(utcTZ); return fmt.format(cal.getTime()); |