Here you can find the source of getShortISODateTime(final Date inDate)
public static String getShortISODateTime(final Date inDate)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getShortISODateTime(final Date inDate) { String isoDate = null;//from www . j a va 2s. co m SimpleDateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); if (inDate != null) { isoDate = isoDateFormat.format(inDate); } return isoDate; } }