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) |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Mysql Date Parse
Post your Comment