Jump to content

Another Date q....changing timezones


Albatross

Recommended Posts

I have the date being pulled in an echo statement but I'm trying to use the date_add() function somewhat unsuccessfully...

 

Declaring the current time...

 

<?php
$time = date("h:i A");
?>

 

and then echoing it..

 

<?php echo $time date_add(INTERVAL 2 HOUR)"; ?>

 

And as guess, it isn't working and even after searching on google, I can't seem to get this one.  Any ideas would be appreciated. :)

Link to comment
https://forums.phpfreaks.com/topic/61931-another-date-qchanging-timezones/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.