Here you can find the source of parseUserDate(String date)
public static Date parseUserDate(String date) throws ParseException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final DateFormat userDateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss"); public static Date parseUserDate(String date) throws ParseException { synchronized (userDateFormat) { return userDateFormat.parse(date); }//w ww. ja v a 2 s . com } }