Here you can find the source of parseXsdDate(final Date date)
public static String parseXsdDate(final Date date)
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static String DATE_FORMAT_STRING = "yyyy-MM-dd'T'HH:mm:ssZ"; public static String parseXsdDate(final Date date) { String temp = new SimpleDateFormat(DATE_FORMAT_STRING).format(date); return temp.substring(0, temp.length() - 2) + ":" + temp.substring(temp.length() - 2, temp.length()); }/* ww w .jav a2 s . com*/ public static Date parseXsdDate(final String XsdDate) throws ParseException { String temp = XsdDate.substring(0, XsdDate.length() - 3) + XsdDate.substring(XsdDate.length() - 2, XsdDate.length()); return new SimpleDateFormat(DATE_FORMAT_STRING).parse(temp); } }