Here you can find the source of tryParse(String isoDateTime)
public static Date tryParse(String isoDateTime) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static SimpleDateFormat ISO_SDF_DATETIME = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); public static Date tryParse(String isoDateTime) throws ParseException { return ISO_SDF_DATETIME.parse(isoDateTime); }// www . j a v a 2s . co m }