Here you can find the source of isoTime(Date d)
public static String isoTime(Date d)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static DateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); public static String isoTime(Date d) { if (d == null) return null; return isoDateFormat.format(d); }//from w ww . j ava 2 s .co m }