ASP .NET with C#:month not displayed for BoundField in GridVeiw

Discussion in 'General Computer Support' started by gerinjacob, Sep 3, 2006.

  1. gerinjacob

    gerinjacob

    Joined:
    Sep 3, 2006
    Messages:
    1
    Hi,
    I used GridView for one of my web application,

    The BoundField code is as follows:
    <asp:BoundField DataField="Scheduleddate" HeaderText="Quiz Scheduled on" SortExpression="Scheduleddate" DataFormatString="{0:mm/dd/yyyy}" HtmlEncode="false" />

    In that i wanted Date to be displayed in mm/dd/yyyy format. The format is working fine, but month is dispalyed as "00". For eg. 00/03/2006

    Can anyone help me?:help:

    Regards,
    Gerin
    gerinjacob, Sep 3, 2006
    #1
    1. Advertising

  2. gerinjacob

    WhyDoesItDoThat

    Joined:
    Nov 10, 2006
    Messages:
    1
    change mm to MM
    Last edited: Nov 10, 2006
    WhyDoesItDoThat, Nov 10, 2006
    #2
    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. prasanthamohan
    Replies:
    0
    Views:
    1,367
    prasanthamohan
    Jul 18, 2006
  2. BRight777
    Replies:
    0
    Views:
    552
    BRight777
    Aug 6, 2006
  3. BRight777
    Replies:
    0
    Views:
    579
    BRight777
    Aug 6, 2006
  4. Giuen
    Replies:
    0
    Views:
    756
    Giuen
    Sep 12, 2008
  5. london1919
    Replies:
    1
    Views:
    2,883
    Lawrence Garvin \(MVP\)
    Dec 8, 2008
Loading...

Share This Page