Mysql Date from Date

Mysql Date from Date Time in Mysql return the Current 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.




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


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

Mysql Date from Date

Posted on: December 31, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles



Discuss: Mysql Date from Date  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
July 12, 2011
need help regarding mysql date functions

Hi, I need queries for yesterday,week, last week, last 2 weeks, current month, last month, last 3 months, last 6 months and annual records separate queries. I am not finding the correct solution. Thanks sreenath