2005 DataFormatString in Gridview?

Discussion in 'ASP .Net' started by Tina, Dec 30, 2005.

  1. Tina

    Tina Guest

    Putting {0:d} in the DataFormatString for a date field in a GridView doesn't
    work. That date still shows with 12:00:00 AM and all of that.
    T
     
    Tina, Dec 30, 2005
    #1
    1. Advertisements

  2. turn off htmlencode property !

    "Tina" <> schreef in bericht
    news:...
    > Putting {0:d} in the DataFormatString for a date field in a GridView
    > doesn't work. That date still shows with 12:00:00 AM and all of that.
    > T
    >
     
    Edwin Knoppert, Dec 30, 2005
    #2
    1. Advertisements

  3. Tina

    lildakes

    Joined:
    Mar 26, 2008
    Messages:
    1
    Likes Received:
    0
    dateformatstring

    Use {0:d} in the dateformatstring part, but change Htmlencode to FALSE
    it should work

    dakes
     
    lildakes, Mar 26, 2008
    #3
    1. Advertisements

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. Gerhard Pretorius

    August CTP DataFormatString in Gridview not working

    Gerhard Pretorius, Sep 6, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,852
    Louis
    Sep 22, 2005
  2. Gerhard Pretorius

    DataformatString in Gridview and Detalsview ignored

    Gerhard Pretorius, Sep 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    715
    Gerhard Pretorius
    Sep 8, 2005
  3. Jon

    Gridview and dataformatstring

    Jon, Nov 8, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,822
    =?Utf-8?B?Q3VydCBLb3BwYW5n?=
    Nov 9, 2005
  4. Hardy Wang
    Replies:
    1
    Views:
    5,813
    Hardy Wang
    Dec 12, 2005
  5. Amelyan
    Replies:
    4
    Views:
    6,818
    Amelyan
    Jan 9, 2006
  6. Alan Silver

    DataFormatString not working in GridView

    Alan Silver, Feb 20, 2006, in forum: ASP .Net
    Replies:
    12
    Views:
    5,927
    Chop Hofilena
    Mar 10, 2006
  7. Rob Roberts
    Replies:
    3
    Views:
    22,444
    Martin Arredondo
    Apr 13, 2007
  8. Eamonn
    Replies:
    5
    Views:
    31,967
    udayakumar86
    Nov 18, 2008
Loading...