Java Date Format ISO iso(Date date)

Here you can find the source of iso(Date date)

Description

Formats the specified date using yyyy-MM-dd HH:mm:ss pattern.

License

Apache License

Declaration

public static String iso(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    /**/*from   www  .j  a  v a  2  s  .c o  m*/
     * Formats the specified date using <code>yyyy-MM-dd HH:mm:ss</code>
     * pattern.
     */
    public static String iso(Date date) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
    }
}

Related

  1. getIsoTimeStamp()
  2. getIsoTimestampFormatter()
  3. getJavaISO8601Time(Date date)
  4. getSDFISO8601()
  5. getShortISODateTime(final Date inDate)
  6. iso8601(final Date date)
  7. iso8601Date(Date d)
  8. isoDateFormat(Calendar calendar)
  9. isoDateFormat(final Date date)