Java tutorial
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { public static long parse_iso_time_string_to_long(String iso_time_string) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("yyyy-MM-dd'T'HH:mm:ssZ"); return sdf.parse(iso_time_string).getTime(); } }