Help Changing Date and Time Format

Hi,

I’m trying to modify a script I got. I’m not much of a php person, so I need some help. Currently, the script has dates formatted in the European way (day, month, year) and time is in 24-hour mode. I want dates to be month, day, year and time in 12-hour mode.

I’ve found two different lines of code which look like they are for formatting the date. Here they are:

header('Expires: ' .  gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');
function get_date($date_format = 'j F Y, g:i a')

How do I do this?

Thanks.

http://php.net/date

Sponsor our Newsletter | Privacy Policy | Terms of Service