Sometimes we want to see the date part only from the records of a table. The Tutorial covers you an example that helps you to get date part. The date(now( )) return you the current date as date field name.
date (now( ) ) : The date(now ( )) return you the current date.
Query:-
mysql> select date(now())as date; |
Output:-
+------------+ | date | +------------+ | 2008-12-22 | +------------+ 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 Part Only
Post your Comment