Here you can find the source of toISODateRealTimeFormat(Date iDate)
public static String toISODateRealTimeFormat(Date iDate)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String ISO_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; public static String toISODateRealTimeFormat(Date iDate) { DateFormat df = new SimpleDateFormat(ISO_DATE_TIME_FORMAT); return df.format(iDate); }/*ww w. j a v a2 s . c om*/ }