Java Date Format ISO getIso8601DateFormat()

Here you can find the source of getIso8601DateFormat()

Description

get Iso Date Format

License

Open Source License

Declaration

public static DateFormat getIso8601DateFormat() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Main {
    public static DateFormat getIso8601DateFormat() {
        // 19980717T14:08:55 // YYYY-MM-DDThh:mm:ss.sTZD
        return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.Sz");
    }/*w w w  .j a  va 2  s.co m*/
}

Related

  1. getISO8601Date(long millis)
  2. getIso8601DateFormat()
  3. getIso8601DateFormat()
  4. getIso8601DateFormat()
  5. getISO8601DateFormat()
  6. getISO8601DateFormat(TimeZone tz, String mask)
  7. getISO8601DateString(Date d)
  8. getIso8601DateString(long timestampWithMilliseconds)
  9. getIso8601DayDateFormat()