Home Sql Sqldate Mysql Date Part Only



Mysql Date Part Only
Posted on: September 22, 2006 at 12:00 AM
Sometimes we want to see the date part only from the records of a table.

Mysql Date Part Only

     

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)

Related Tags for Mysql Date Part Only:


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Part Only  

Post your Comment


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

Ask Questions?

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.