Hello,
Could someone please help me to write a bit of code where we take todays dte and time, subtract 8 hours from that a then display it as something like this ?
Wed 1st Jan 5:23am
Regards
Rowan Trimmer
echo date('D jS M G:sa', strtotime('+8 hours'));
See date() and [URL=http://.php.net/manual/en/function.strtotime.php]strtotime()[/URL].
Installer shoudln't that be
echo date('D jS M G:sa', strtotime('-8 hours'));
instead because
days dte and time, subtract 8
was what I though they wanted.
Yeah, my error. "-" it is.