formatting dates

  • Thread starter Thread starter Andy B
  • Start date Start date
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?
 
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

Back
Top