Java tutorial
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { private final static String formatC = "yyyyMMddHHmmssSSSZ"; public static Date parseDate_C(String dateStr) throws ParseException { return new SimpleDateFormat(formatC, Locale.getDefault()).parse(dateStr); } }