Java Utililty Methods Calendar to String

List of utility methods to do Calendar to String

Description

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

Method

Stringcalendar2string(Calendar calendar, String formatString)
calendarstring
return new SimpleDateFormat(formatString).format(calendar.getTime());
StringcalendarDateToStrFormatddMMMyy(final Calendar cal)
calendar Date To Str Formatdd MM Myy
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy");
return dateFormat.format(cal.getTime());
StringcalendarOutput(Calendar date)
Generiert eine Zeichenkette-Ausgabe im Format "dd.MM.yyyy"
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
return sdf.format(date.getTime());
StringcalendarParaString(Calendar cal)
calendar Para String
return dataFormatada.format(cal.getTime());
StringcalendarToIso(Calendar c)
calendar To Iso
return ISO_DATE_FORMAT.format(c.getTime());
StringcalendarToSiteDataString(final Calendar cal)
Returns calendar as a formatted String (yyyy-MM-dd HH:mm:ss'Z')
return SIMPLE_DATE_FORMATTER2.format(new Date(cal.getTimeInMillis()));
StringcalendarToStorageRoomTimeString(Calendar cal)
Serializes a Calendar as a StorageRoom time String
initFormatters();
String date = timeFieldFormatter.format(cal.getTime());
return date;
StringcalendarToString(Calendar c)
calendar To String
return calendarToString(c, "yyyyMMddHHmmss");
StringcalendarToString(Calendar c, String format)
Convert a calendar to String.
String rtn = null;
if (c != null) {
    SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.FRANCE);
    rtn = sdf.format(c.getTime());
return rtn;
StringcalendarToString(Calendar cal)
calendar To String
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
return (dateFormat.format(cal.getTime()));