Re: Format Dates in DataGrid

Discussion in 'ASP .Net' started by Steve C. Orr, MCSD, Jul 26, 2003.

  1. Try this:
    <%# DataBinder.Eval(Container.DataItem, "FieldName", "{0:d}") %>

    Here's more details:
    http://msdn.microsoft.com/library/d...ontrolsdatalistcommandeventargsclasstopic.asp

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net




    "PABLIN" <> wrote in message
    news:059d01c3530c$ab048920$...
    > Hello Community.
    > I am loading data in a DataGrid, in a column load dates,
    > am using the Property Builder - Columns - Bound Column of
    > the Grid, segun you can be given to the fomato in Text
    > Format string, alguine can informat to me like entrance
    > the format of date small dd-mm-yy
    > Thanks
    Steve C. Orr, MCSD, Jul 26, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Lozzi

    Dates dates dates dates... SQL and ASP.NET

    David Lozzi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    860
    Rob Schieber
    Sep 30, 2005
  2. PW

    Dates! Dates! Dates!

    PW, Aug 7, 2004, in forum: ASP General
    Replies:
    4
    Views:
    193
    Mark Schupp
    Aug 9, 2004
  3. Replies:
    1
    Views:
    205
    Jano Svitok
    Jul 17, 2007
  4. kellygreer1

    RFC-822 dates into Ruby dates

    kellygreer1, Jun 8, 2008, in forum: Ruby
    Replies:
    1
    Views:
    195
    Eric I.
    Jun 8, 2008
  5. Dr J R Stockton

    FAQ Dates; Opera Dates.

    Dr J R Stockton, Jun 18, 2007, in forum: Javascript
    Replies:
    0
    Views:
    159
    Dr J R Stockton
    Jun 18, 2007
Loading...

Share This Page