Ordinal date question

Hello

I don’t have access yet to a UNIX server and I am completely new to PHP.

I wonder if someone could confirm that the following scriplet would produce today’s date as 29th August 2014 if this were online:

[code] etc
CSS stylesheet

<?php $today = date("j S, F, Y"); // Is this 29th August 2014? ?> [/code]

If that looks fine, how would I always ensure that it shows local UK time. In other words, even if this Web page were hosted on US servers, the time and date of those servers would be disregarded and show UK local time?

Thanks

Blue

[php]date_default_timezone_set(‘Europe/London’); // Insure right timezone:
echo $today = date(“jS F Y”); // Is this 29th August 2014?[/php]

Thank you for that, Strider64 - so no comma after the month (F).

Thanks again!

Blue

Sponsor our Newsletter | Privacy Policy | Terms of Service