Here you can find the source of getDateAsISOTimestampString(Date timestamp)
public static String getDateAsISOTimestampString(Date timestamp)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final SimpleDateFormat TIMESTAMP_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); public static String getDateAsISOTimestampString(Date timestamp) { return TIMESTAMP_FORMAT.format(timestamp); }// w w w. jav a 2s . c om }