php - Formatting date, ordinal suffix for the day of the month -



php - Formatting date, ordinal suffix for the day of the month -

so if use:

<?php echo date_format($date, "j m y") ?>

i date in next format: 5 jan 1950.

however, want along lines of: 5th jan 1950

how go adding th?

look @ formats here http://www.php.net/manual/en/function.date.php, but

<?php echo date_format($date, "js m y") ?><br>

php date

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -