- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Use this:
<%= formatDate(new Date(), '%Bl %D, %4Y').replace(/\d+/, function ($1) {return $1 + (
$1 == 31 || $1 == 21 || $1 == 1 ? 'st' :
$1 == 22 || $1 == 2 ? 'nd' :
$1 == 23 || $1 == 3 ? 'rd' :
'th'
)}) %>
Thanks,
-Jon