Link to home
Start Free TrialLog in
Avatar of rpm
rpmFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DataBinder.Eval format date with "th"

Hi,

I am formatting a date as follows:

<%#DataBinder.Eval(Container.DataItem, "news_date", "{0:dd MMMMMM yyyy}")%>

This formats the date as: 29 August 2012

Is there a way format the date as: 29th August 2012

Thanks,

Richard
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rpm

ASKER

Obvious when you think about it!

Thanks that did the trick nicely.