View Single Post
Old 04-04-2007, 10:06 AM   #3 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

If you're using dates, then php's date function is much more flexible. The "th/st/rd" suffixes are available by using S in the formatting string.

PHP Code:
<?php

$date 
now();
echo 
date('F jS'$date); // April 4th

?>
Salathe is offline  
Reply With Quote