Jump to content

[SOLVED] PHP DATE function - display 'OCT' instead of 'OCTOBER'


Dave3765

Recommended Posts

Hey Guys,

 

I'm trying to get a date to display in this format:

18TH OCT, 4:20PM

 

The thing I can't do is shorten the month to just the first 3 letters .

 

I have got the following code:

 

$date = date("dS, F Y, g:i A");
echo('<span class="product_count_ver">' . $date . '</span>');

 

Which produces a date like this: 18th, October 2007, 9:10 PM

Can anyone help?

 

Thanks  :)

 

 

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.