0
Sun Jan 09 2011 22:00:00 GMT+0000 (GMT Standard Time)

I have the above string coming from JavaScript.

How do I convert that into a Java DateTime?

1 Answer 1

3

With SimpleDateFormat.parse. See the pattern docs located up at the top of that page to help you figure out what pattern you want to use for your parsing format string.

Sign up to request clarification or add additional context in comments.

2 Comments

he wont be happy with that answer.
@John you the author of the class?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.