Java Date Format ISO getISO8601Date(final Date date)

Here you can find the source of getISO8601Date(final Date date)

Description

get an ISO 8601 Date Format

License

Apache License

Parameter

Parameter Description
date a parameter

Declaration

public static String getISO8601Date(final 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   ww  w .j ava2  s  .c  o  m*/
     * get an ISO 8601 Date Format
     * 
     * @param date
     * @return
     */
    public static String getISO8601Date(final Date date) {
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
        return sdf.format(date);
    }
}

Related

  1. fromIso8601(String iso)
  2. get_ISO_8601()
  3. getDateAsISOString(Date date)
  4. getFormattedMillisolString(double s)
  5. getIso8601(final Date date)
  6. getISO8601Date(long millis)
  7. getIso8601DateFormat()
  8. getIso8601DateFormat()
  9. getIso8601DateFormat()