Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Sqldate Mysql Date Parse

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Parse

Advertisement
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 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)
Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 21, 2009

Related Tutorials

Discuss: Mysql Date Parse  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com