pHp Code To Add Timezone To A Web Page

Here is some pHp code you can use to add the current date and time to your web page.

print “<br>”;
// Change the line below to your timezone!
$timezone = ‘Zurich’;
$date = date(‘d-M-Y h:i:s a’, time());
echo “It is currently “;
echo $date;
echo ” in Zurich, Switzerland”;

Leave a Reply

Your email address will not be published. Required fields are marked *