Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// convert date string to EPOCH
function TO_EPOCH(strDate) {
var strFmt = "yyyy-MM-dd'T'HH:ss:mm.SSS";
var c = new java.text.SimpleDateFormat(strFmt).parse(strDate).getTime()/1000;
return c.toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment