Mysql Date from Date

Mysql Date from Date Time in Mysql return the Current date.

Mysql Date from Date

Mysql Date from Date

     

Mysql  Date from Date Time in Mysql return the Current  date.

Understand with Example

The Tutorial illustrate an example from 'DateTime in Mysql'. To grasp this example, we use date(current_trimestamp ( )) query that return you the current date  from date time as Date field name.

Query:-

 

 

mysql> select date(current_timestamp()) as Date;

Output:-

+------------+
| Date |
+------------+
| 2008-12-19 |
+------------+
1 row in set (0.00 sec)