Here you can find the source of getSDFISO8601()
public static SimpleDateFormat getSDFISO8601()
//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; } }