If you add to or subtract from a date value something that contains a time part, the result is automatically converted to a datetime value. : DATE_ADD : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » DATE_ADD »

 

If you add to or subtract from a date value something that contains a time part, the result is automatically converted to a datetime value.


mysql>
mysql> SELECT DATE_ADD('1999-01-01', INTERVAL DAY);
+----------------------------------------+
| DATE_ADD('1999-01-01', INTERVAL DAY|
+----------------------------------------+
1999-01-02                             |
+----------------------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» DATE_ADD