DateFormatUtils: ISO_DATE_FORMAT : DateFormatUtils « Apache Common « Java Tutorial






import java.util.Date;

import org.apache.commons.lang.time.DateFormatUtils;

public class MainClass {
    public static void main(String[] args) {
      //Format Date into ISO_DATE_FORMAT
      System.out.println("3) ISO_DATE_FORMAT >>>" +
          DateFormatUtils.ISO_DATE_FORMAT.format(new Date()));

    }
}
3) ISO_DATE_FORMAT >>>2007-05-09
  Download:  CommonLangDateFormatUtils.ISO_DATE_FORMAT.zip( 199 k)







37.8.DateFormatUtils
37.8.1.Date UTC Format
37.8.2.DateFormatUtils.Format: DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT
37.8.3.DateFormatUtils: ddMMyyyy
37.8.4.DateFormatUtils: SMTP_DATETIME_FORMAT
37.8.5.DateFormatUtils: ISO_DATE_FORMAT
37.8.6.DateFormatUtils: formatUTC
37.8.7.Using DateFormatUtils.format to format current time to format: MMM dd yy HH:mm
37.8.8.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT