happysmile
happysmile

Reputation: 7777

format date in listview control

the date is like this :12/07/2009 7:30:45 PM

now i need to format the date like this

Nov 11, 2009 7:30AM how can i achive this one thank you

Upvotes: 2

Views: 6975

Answers (1)

Brian Mains
Brian Mains

Reputation: 50728

Try:

Eval("CreatedDate", "{0:MMM dd, yyyy hh:mm tt}")

Taken from: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

Upvotes: 9

Related Questions