Here you can find the source of getTimeFromJsToJava(String date)
public static Date getTimeFromJsToJava(String date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main { public static Date getTimeFromJsToJava(String date) { SimpleDateFormat utcFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.CHINA); utcFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date d = null;/*from w w w . j a v a2 s. c om*/ try { d = utcFormat.parse(date); } catch (Exception e) { e.printStackTrace(); } return d; } }