Does anybody know the formal name of the YYYY-MM-DD HH:MM:SS
date format used by a MySQL DATETIME? Is there one? It looks close to ISO 8601, but it's different enough to break in most applications if you try to use the two interchangeably.
Sometimes I find myself needing to refer to this particular format in conversation, but referring to it as "the DATETIME format" always draws blanks from those who haven't done much work with databases. I'm accustomed to date formats having official names and extremely formal definitions. (RFC 2822, anyone?) So, does one exist?
T
separating the date and time components instead of a space character. – WooT
can be left out if no abmiguity is to be expected (at least that's what Wikipedia says) – MotheatenisNaN(Date.parse('2012-12-06 12:15:00')) === true
andisNaN(Date.parse('2012-12-06T12:15:00')) === false
. TheT
does seem to make a difference in some applications. – Woo