|
Home All Articles Contact Zawgyi Myanmar Font |
|
Home >> Snippet List >> Snippet Name Add and Subtract datesDescription You can combine strtotime with the date function to create your own date This is just an alternative to using mktime that's a little more intuitivePHP Snippet <?PHP $date = DATE('Y-m-d', STRTOTIME("-30 days")); $date = DATE('Y-m-d', STRTOTIME("-10 years")); $date = DATE('Y-m-d', STRTOTIME("+30 days")); ?> |
|
All photograph,logos, articles, comments and trademarks etc, in this site are property of their respective owners.All the rest (c) 2006 by PhpMyanmar.com. |