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}" %>
 
Back
Top