formatting dates

A

Andy B

I have the expressing Eval("CreationDate") that is bound to a Text property
of a Label control. I want to format the date and time so it uses the date
code f. How would I do something like this?
 
M

Mike Brind

Andy B said:
I have the expressing Eval("CreationDate") that is bound to a Text property
of a Label control. I want to format the date and time so it uses the date
code f. How would I do something like this?

<%# Eval("CreationDate", "{0:f}" %>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,413
Latest member
ReeceDorri

Latest Threads

Top