Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Mysql Date Today

Mysql Date Today show you Query to retrieve the current today date.

Ads

Mysql Date Today

     

Mysql Date Today show you Query to retrieve the current today date. 

Understand with Example

The Tutorial illustrate an example from Date Today in My sql. The Query used in the below example the now( ) return you the today current date.

date (now ( )) : The Query now ( )   return you the current today date in Mysql.

Query for finding the current date:-

mysql> select date(now())as DateToday;

Output:-

+------------+
| DateToday  |
+------------+
| 2008-12-22 |
+------------+
1 row in set (0.00 sec)

Advertisements

Ads
Share on Google+Share on Google+

Mysql Date Today

Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Mysql Date Today   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
Stivlo
October 7, 2011
What about curdate?

No need to extract the date from now(), there is CURDATE already. SELECT CURDATE() AS DateToday;

Ads

 

Ads