Java tutorial
//package com.java2s; import android.content.Context; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date getDateWithTPattern(Context context, String strDate) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd'T'HH:mm:ss"); // sdf.setTimeZone(TimeZone.getTimeZone("GMT")); Date date = sdf.parse(strDate); return date; } }