Skip to content

Instantly share code, notes, and snippets.

Embed
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();
}
TO_EPOCH($p0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.