Mysql Date Select

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 Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database.

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 |
+-----------------------------+

Ads

Ads