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
Post a Comment