Dateadd
Dateadd is a T-SQL function that returns a datetime with the specified number interval added to a specified datepart of that datetime.
Strtotime
PHP function for parsing about any English textual datetime description into a Unix timestamp
Others
Example |
---|
That said the date class is much better in php5.3 -- it even has dateadd subtract functions which would also solve your problem much better than strtotime . from question Calculating the number of days using strtotime returns wrong result |