formatting dates

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    formatting dates

    I have the expressing Eval("CreationD ate") 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?



  • Mike Brind

    #2
    Re: formatting dates


    "Andy B" <a_borka@sbcglo bal.netwrote in message
    news:etL46FbSJH A.4680@TK2MSFTN GP06.phx.gbl...
    >I have the expressing Eval("CreationD ate") 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("CreationD ate", "{0:f}" %>

    --
    Mike Brind
    MVP ASP/ASP.NET


    Comment

    Working...