I have a string that represents a date. I do not know the date format of the string. But for example only, it may be any of
- 2015-10-14T16:41:42.000Z
- 2015-10-14T19:01:53.100+01:00
- 2015-10-14 05:20:29
or any valid format that a website may use to describe date in a meta tag (so the format will be official, as opposed to whimsical, but the set of possibilities is not small).
Can I use joda-time to solve this issue? How about java.util.Date
or anything else?
update
I think I find a Javascript equivalent of what I am looking for
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
But I need an answer for Java.