> strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 )); > > I get back the timestamp for 1/31/2003 and not 2/1/2003. > Are you sure?
I tried it on my system (php 4.2.3 freeBSD 4.6.2) and this is the output I got... # php <?php echo date("Y-m-d", mktime( 0, 0, 0, 1, 1, 2003 ))."\n"; echo date("Y-m-d",strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 )))."\n"; ?> X-Powered-By: PHP/4.2.3 Content-type: text/html 2003-01-01 2003-02-01 What are you doing with the timestamp strtotime gives you? Could that be where the error is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php