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) |
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 from Date
Post your Comment