Java Utililty Methods Date Time to String

List of utility methods to do Date Time to String

Description

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

Method

StringdateTimeToString_mmddyyyy(Date d)
date Time To Strinmmddyyyy
if (d == null)
    return null;
return dfDateTime_mmddyyyy.format(d);
StringdateTimeToXSDate(Date date)
Convert DateTime to XML Schema date.
return formatDate(date, XML_SCHEMA_DATE_FORMAT);
StringdateTimeToXSDate(Date date)
Convert DateTime to XML Schema date.
String format = "yyyy-MM-dd'Z'";
DateFormat utcFormatter = new SimpleDateFormat(format);
return utcFormatter.format(date);