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

View previous topic View next topic Go down

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 on 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
avatar
jamied_uk
Admin

Posts : 2293
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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