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

Discussion in '.NET' 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?

    Regards,
    Gerin
     
    gerinjacob, Sep 3, 2006
    #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. pawel.pabich@gmail.com

    BoundField.DataFormatString and length of displayed string

    pawel.pabich@gmail.com, Nov 7, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    2,864
    pawel.pabich@gmail.com
    Nov 7, 2005
  2. Michal Maciejczak
    Replies:
    1
    Views:
    1,996
    Matthias Kaeppler
    Apr 23, 2005
  3. Bill
    Replies:
    10
    Views:
    745
    Fulvio
    Apr 13, 2006
  4. Venu
    Replies:
    0
    Views:
    334
  5. Ali.M.Habib

    about gridveiw ASP.NET2 and c#

    Ali.M.Habib, Nov 18, 2008, in forum: .NET
    Replies:
    0
    Views:
    985
    Ali.M.Habib
    Nov 18, 2008
Loading...

Share This Page