Parsing and Formatting Date and Time.
What is the difference between December, 04, 1984 and 12/04/1984, and 04/Dec/1984 and ... or difference between 13:00hr and 1PM and...
Formating. They all represent the same date and time but are formatted differently.
Formatting date/time values as string, and parsing date/time values expressed in string into objects, are one of the common tasks when dealing with date/time.
Formatting allows you to take a Java object that represents date or time and convert it into a string represention using a predefined formatting.
Conversely, with parsing, you take date or time values expressed as strings and have it converted it into valid Java date or time objects.
Conversely, with parsing, you take date or time values expressed as strings and have it converted it into valid Java date or time objects.
We quickly go over how to accomplish these tasks: