Jump to content

[SOLVED] Formatting a date other than today's?


kernelgpf

Recommended Posts

I'm trying to get the English ordinal suffix for the day of the month (the "th", "nd", etc.) like 1st, 2nd, 3rd, 4th, etc.

 

To format TODAY'S date, I know you do..

 

$day3=date('S');

 

But how do I figure out another date's "S"? I have a string named $day, and I need to figure out it's "S", if that makes sense.

 

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.