MySQL DATE() takes the date part out from a datetime expression.
This is an important function of date and time function in Mysql.
Where expr is a datetime.

This is an important function of date and time function in Mysql.
Syntax
DATE(expr);
Where expr is a datetime.
Example
SELECT DATE('2008-05-17 11:31:31') as required_date;
No comments:
Post a Comment