xwishmasterx Posted May 5, 2011 Share Posted May 5, 2011 I have the below code wish I wish to add 12 hours to: $today = date('D', mktime(0,0,0,date('m'),date('d')+0,date('Y'))); anyone to show how I add 12 hours? Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted May 5, 2011 Share Posted May 5, 2011 Not sure if this is the best metod, but it does the trick. functions to look for in the manual are strtotime() and date() $time = strtotime("now +12 hours"); $format = date("D M j G:i:s T Y", $time); echo $format; good luck! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.