Here you can find the source of dateParser()
private static SimpleDateFormat dateParser()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.TimeZone; public class Main { private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"; private static final TimeZone TIME_ZONE = TimeZone.getTimeZone("UTC"); private static SimpleDateFormat dateParser() { SimpleDateFormat dateParser = new SimpleDateFormat(DATE_FORMAT); dateParser.setTimeZone(TIME_ZONE); return dateParser; }/*from w w w.j a v a 2s . c o m*/ }