I have a String representation of a date that I need to create a Date or Calendar object from. I’ve looked through Date and Calendar APIs but haven’t found anything that can do this other than creating my own ugly parse method. I know there must be a way, does anyone know of a solution?
I have a String representation of a date that I need to create a
Share
In brief:
See
SimpleDateFormatjavadoc for more.And to turn it into a
Calendar, do: