SyntaxFix
Write A Post
Hire A Developer
Questions
try this:
int epoch = (int) (new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss").parse("01/01/1970 00:00:00").getTime() / 1000);
you can edit the string in the parse() methods param.