Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the name of the default date format used by MySQL?

Tags:

mysql

MySQL defaults to displaying columns of type DATETIME using the format yyyy-MM-dd HH:mm:ss. Does this format have a name, such as the RFC 1123 format? How pervasive is this format among database vendors?

An example of a date value displayed in this format would be: 2013-05-13 12:58:26

like image 317
Jesse Craig Avatar asked May 14 '13 17:05

Jesse Craig


People also ask

What is the default format of date?

The default date format shows as YYYY-MM-DD.

Which one is the default date format style in SQL?

In SQL Server, regardless of data type and language, those are yyyy-MM-ddThh:mm:ss. nnnnnnn and yyyyMMdd .

What is the date syntax in MySQL?

MySQL recognizes DATE values in these formats: As a string in either ' YYYY-MM-DD ' or ' YY-MM-DD ' format. A “relaxed” syntax is permitted: Any punctuation character may be used as the delimiter between date parts. For example, '2012-12-31' , '2012/12/31' , '2012^12^31' , and '2012@12@31' are equivalent.

How can get date in dd mm yyyy format in MySQL?

MySQL DATE_FORMAT() Function The DATE_FORMAT() function formats a date as specified.


1 Answers

It's commonly known as ISO 8601 format.

like image 162
tadman Avatar answered Sep 28 '22 01:09

tadman