Date add problem
Posted: Mon Sep 12, 2011 4:32 pm
Hi bit of a novice here I need the correct syntax for a date problem
my server is 5 hours behind, thats not a problem, but for my clients I need to show a date + 5 hours and a date +17hours as there is a 12 hour waiting period
I can do this if the date is now by using
But if I try to do a calculation on a variable I just keep getting errors can anyone give me the correct code please
I need to add 17 hours to:
Thanks
my server is 5 hours behind, thats not a problem, but for my clients I need to show a date + 5 hours and a date +17hours as there is a 12 hour waiting period
I can do this if the date is now by using
Code: Select all
<?php echo date('l jS F Y H:i', strtotime('+17 hour')) ."\n"; ?>I need to add 17 hours to:
Code: Select all
<?php
$date = date("l jS F Y H:i", strtotime($f4));
echo $date;
?>