Mysql Date Select

The Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database.

Ads

Mysql Date Select

     

The Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database. The SELECT DATE ('YYYY-MM-DD') is used to return the current selected date.

SELECT DATE('2009-01-02') : The Query is used to return the specified selected date from your database as fieldname 'DATE'.

Query to select date 

SELECT DATE('2009-01-02 01:02:03');

Output 

+-----------------------------+
| DATE('2009-01-02 01:02:03') |
+-----------------------------+
| 2009-01-02 |
+-----------------------------+

Advertisements

Ads
Share on Google+Share on Google+

Mysql Date Select

Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Mysql Date Select  

Post your Comment


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

Ads

 

Ads