DateTime format

Discussion in 'ASP .Net' started by PawelR, Apr 21, 2005.

  1. PawelR

    PawelR Guest

    Hello group,
    In my webapps I have datagrid binding with table from dataset. In table I
    have columns with datetime format.
    In dataGrid date is display in format "yyyy-mm-dd hh-mm-ss" but I want only
    "yyyy-mm-dd".
    This column is "Template Column"
    How do it?
    PawelR, Apr 21, 2005
    #1
    1. Advertising

  2. PawelR

    Brock Allen Guest

    Brock Allen, Apr 21, 2005
    #2
    1. Advertising

  3. PawelR

    Guest

    , Apr 21, 2005
    #3
  4. PawelR

    I'm Home Guest

    Perhaps you can in the format column for the specific column in datagrid
    property builder, use something like:
    {0:yyyy-mm-dd} ... that not be exactly right but it's close I think.
    HTH, Bob

    "PawelR" <> wrote in message
    news:...
    > Hello group,
    > In my webapps I have datagrid binding with table from dataset. In table I
    > have columns with datetime format.
    > In dataGrid date is display in format "yyyy-mm-dd hh-mm-ss" but I want

    only
    > "yyyy-mm-dd".
    > This column is "Template Column"
    > How do it?
    >
    >
    I'm Home, Apr 21, 2005
    #4
    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. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    689
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    522
    Tim Peters
    Sep 9, 2003
  3. mp
    Replies:
    1
    Views:
    377
    John Machin
    Jul 28, 2006
  4. Martin
    Replies:
    0
    Views:
    328
    Martin
    Dec 27, 2008
  5. Replies:
    2
    Views:
    744
    M.-A. Lemburg
    Jan 6, 2009
Loading...

Share This Page