Abdul Basit
Abdul Basit

Reputation: 722

date and time formating in ASP.NET Data Binding

I need to format the date and time in binding expression in the following format

day/month/year hour:minute:second AM/PM 01/10/2013 01:05:13 AM

what i tried so far is

Eval("Date", "{0:dd/M/yyyy}")

but this only format the date not the time, Even i don't see the time.

Upvotes: 0

Views: 4121

Answers (1)

iceheaven31
iceheaven31

Reputation: 887

Eval("Date", "{0:dd/MM/yyyy hh:mm:ss tt}")

Upvotes: 3

Related Questions