![Php Parse Iso 8601 Date Php Parse Iso 8601 Date](/uploads/1/2/4/2/124290159/858292325.png)
I've written a simple method to parse a specific kind of ISO 8601 timestamp (GMT, with milliseconds), into a DateTime. I'm looking to replace it with something that can parse any ISO 8601 timestamp.
What can ISO 8601 do for me? ISO 8601 can be used by anyone who wants to use a standardized way of presenting dates and times. It helps cut out the uncertainty and confusion when communicating internationally. The full standard covers ways to write:. Date. Time of day. Coordinated universal time (UTC).
Local time with offset to UTC. Date and time. Time intervals.
Recurring time intervals How can I get ISO 8601? You can buy the full standard from the ISO Store, or from the in your country. What is ISO 8601? ISO 8601 describes an internationally accepted way to represent dates and times using numbers. When dates are represented with numbers they can be interpreted in different ways.
![Iso Iso](https://kevcodez.de/wp-content/uploads/2015/07/Abbildung-UMLModell-Class-java-time-Kernklassen-3f94267461887b37.png)
For example, 01/05/12 could mean January 5, 2012, or May 1, 2012. On an individual level this uncertainty can be very frustrating, in a business context it can be very expensive. Organizing meetings and deliveries, writing contracts and buying airplane tickets can be very difficult when the date is unclear. ISO 8601 tackles this uncertainty by setting out an internationally agreed way to represent dates: YYYY-MM-DD For example, September 27, 2012 is represented as 2012-09-27.