Get sub date : Date Function : Date Time SQL / MySQL


SQL / MySQL » Date Time » Date Function »

 

Get sub date



/*
mysql> SELECT DATE_SUB(CURDATE(),INTERVAL 1 DAY);
+------------------------------------+
| DATE_SUB(CURDATE(),INTERVAL 1 DAY) |
+------------------------------------+
| 2005-10-08                         |
+------------------------------------+
1 row in set (0.00 sec)


*/  
SELECT DATE_SUB(CURDATE(),INTERVAL DAY);

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Date Time
» Date Function