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

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -