What is the name of DateTime format Y-m-d H:i:s

Viewed 1124

From my experience, the most commonly used DateTime format on the internet is: Y-m-d H:i:s eg. 2020-01-29 17:59:00

Even though this format is so popular, I have not found any standards behind it, nor even a name.

There are a few similar named formats, but they all include the letter T instead of space as separator between date and time portion.

My question is, does this format have a name?
And is there any standard that backs it up?
Or is it just an organically created format that everyone just started using at some point?

1 Answers

In my opinion it's an organic format first and foremost, even though the date part (Y-m-d) an the time part (H:i:s) are compliant with ISO-8601 standards.

Y-m-d H:i:s is lacking timezone information however. date('c') returns the full ISO-8601 format.

Also, there's date('r') which returns the full RFC-2822 format.

https://www.php.net/manual/en/datetime.format.php

Related