Java Date Format ISO getSDFISO8601()

Here you can find the source of getSDFISO8601()

Description

get SDFISO

License

Open Source License

Declaration

public static SimpleDateFormat getSDFISO8601() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Licensed Materials - Property of IBM//from   ww w.  j a va 2s  .  c o  m
 * ? Copyright IBM Corporation 2014, 2015. All Rights Reserved.
 * 
 * Note to U.S. Government Users Restricted Rights:
 * Use, duplication or disclosure restricted by GSA ADP Schedule
 * Contract with IBM Corp. 
 *******************************************************************************/

import java.text.SimpleDateFormat;
import java.util.SimpleTimeZone;

public class Main {
    public static SimpleDateFormat getSDFISO8601() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
        sdf.setTimeZone(new SimpleTimeZone(SimpleTimeZone.UTC_TIME, "UTC")); //$NON-NLS-1$
        return sdf;
    }
}

Related

  1. getISOFromMillisec(long timeMillisecGMT)
  2. getISOHttpDateFormat()
  3. getIsoTimeStamp()
  4. getIsoTimestampFormatter()
  5. getJavaISO8601Time(Date date)
  6. getShortISODateTime(final Date inDate)
  7. iso(Date date)
  8. iso8601(final Date date)
  9. iso8601Date(Date d)