Mysql Date Parse

Mysql Date is used to parse the string date time in Date Format function and retrieve the date in specified format.

Mysql Date Parse

Mysql Date Parse

     

Mysql Date is used to parse the string date time in Date Format function and retrieve the date in specified format.

Understand with Example

The Tutorial illustrate an example from 'Mysql Date Parse'. To understand and grasp example we use Date_Format that return the date in specific format.

Date_Format('2009-01-09 22.23.00', '%W %M %Y') : The Query is used to parse the string date time and return the date in specified format.  

 

 

 

Query to select using parsing the date.

mysql> SELECT DATE_FORMAT('2009-01-09 22:23:00', '%W %M %Y');
+------------------------------------------------+
| DATE_FORMAT('2009-01-09 22:23:00', '%W %M %Y') |
+------------------------------------------------+
| Friday January 2009 |
+------------------------------------------------+
1 row in set (0.00 sec)