I have a string with a date format such as
Jun 13 2003 23:11:52.454 UTC
containing millisec… which I want to convert in epoch.
Is there an utility in Java I can use to do this conversion?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code shows how to use a java.text.SimpleDateFormat to parse a java.util.Date from a String:
Date.getTime()returns the epoch time in milliseconds.