Java Date Format ISO getIsoFormat()

Here you can find the source of getIsoFormat()

Description

Returns ISO DataFormat 'yyyy-MM-dd'T'HH:mm:ss.SSS'

License

Open Source License

Return

ISO DateFormat

Declaration

public static DateFormat getIsoFormat() 

Method Source Code

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

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.TimeZone;

public class Main {
    /**/*from w  w  w . j a  va 2s . co  m*/
     * Returns ISO DataFormat 'yyyy-MM-dd'T'HH:mm:ss.SSS'
     * 
     * @return ISO DateFormat
     */
    public static DateFormat getIsoFormat() {
        SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); //$NON-NLS-1$
        isoFormat.setTimeZone(TimeZone.getTimeZone("GMT")); //$NON-NLS-1$
        return isoFormat;
    }
}

Related

  1. getIsoDateFormat()
  2. getIsoDateFormater()
  3. getISODateFormatterShort()
  4. getISODateStr(Date date)
  5. getISODateStringFormat(Date ts)
  6. getISOFormat(java.util.Date date)
  7. getISOFromMillisec(long timeMillisecGMT)
  8. getISOHttpDateFormat()
  9. getIsoTimeStamp()