Date Addition and Subtraction
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 7.0 (of 1 scores) |
| Date Added | Nov 02, 2005 |
| Last Updated | Nov 02, 2005 |
| Tags | date time timestamp |
Description
I thought this was pretty neat and useful. You can combine strtotime with the date function to create your own date verbally. This is just an alternative to using mktime that's a little more intuitive.
PHP Snippet:
Date Addition and Subtraction
Posted on Mar 10, 2006 8:51 pm
Posted on Mar 10, 2006 8:51 pm
this doesn't work for me :$
PHP Snippet:
Date Addition and Subtraction
Posted on Mar 14, 2006 7:07 pm
Posted on Mar 14, 2006 7:07 pm
All it does is set the $date variable to a time specified by strtotime. It's a nice example of how convenient PHP makes dealing with time and dates.
PHP Snippet:
Date Addition and Subtraction
Posted on Mar 15, 2006 2:31 am
Posted on Mar 15, 2006 2:31 am
oh okay so then i just need to echo $date






