Welcome Guest, Not a member yet? Register   Sign In
Display Date
#5

[eluser]clintonbeattie[/eluser]
Got it sorted. Amazing.

Thanks so much.

C

One thing though. This is what I use...

Code:
echo "<p>".date('d M Y', strtotime($post['post_date'])) ."</p>";

If I change this to output the day with a suffix of, for example, 6th, 1st, it doesn't work.
Here's my code...

Code:
echo "<p>".date('D M Y', strtotime($post['post_date'])) ."</p>";

This outputs the day as Mon, Tue etc and not 1st,3rd etc.

Any help for this one?


Messages In This Thread
Display Date - by El Forum - 03-17-2009, 05:54 AM
Display Date - by El Forum - 03-17-2009, 06:07 AM
Display Date - by El Forum - 03-17-2009, 06:42 AM
Display Date - by El Forum - 03-17-2009, 07:12 AM
Display Date - by El Forum - 03-17-2009, 07:14 AM
Display Date - by El Forum - 03-17-2009, 07:27 AM
Display Date - by El Forum - 03-17-2009, 08:50 AM
Display Date - by El Forum - 03-17-2009, 08:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB