PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

this is how php can simply be used to add or take away hours from and to a time or date string

Go down

this is how php can simply be used to add or take away hours from and to a time or date string Empty this is how php can simply be used to add or take away hours from and to a time or date string

Post by jamied_uk 9th July 2013, 16:51

Code:


$date = date("d/m/Y H:H");
$todays_date = $date = date("d/m/Y H:H", strtotime("$todays_date + 0 hour"));
echo $todays_date;
$today = $todays_date;
this is how php can simply be used to add or take away hours from and to a time or date string
jamied_uk
jamied_uk
Admin

Posts : 2952
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum