formatting date time

Discussion in 'ASP .Net' started by mark, Aug 26, 2004.

  1. mark

    mark Guest

    i can format dates without a problem like - {0:dd/MM/yyyy}
    how can i add just the hour and minutes as well ? eg 26/08/2004 11:39 (24hr)

    thanks

    mark
    mark, Aug 26, 2004
    #1
    1. Advertising

  2. mark

    Mark Rae Guest

    "mark" <> wrote in message
    news:05jXc.21$...

    > i can format dates without a problem like - {0:dd/MM/yyyy}
    > how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

    (24hr)

    hh or HH = hours
    mm = minutes
    Mark Rae, Aug 26, 2004
    #2
    1. Advertising

  3. mark

    Shiva Guest

    Hi,

    Use {0:dd/MM/yyyy HH:mm}

    "mark" <> wrote in message
    news:05jXc.21$...
    i can format dates without a problem like - {0:dd/MM/yyyy}
    how can i add just the hour and minutes as well ? eg 26/08/2004 11:39 (24hr)

    thanks

    mark
    Shiva, Aug 26, 2004
    #3
  4. mark

    mark Guest

    "Mark Rae" <> wrote in message
    news:%...
    > "mark" <> wrote in message
    > news:05jXc.21$...
    >
    > > i can format dates without a problem like - {0:dd/MM/yyyy}
    > > how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

    > (24hr)
    >
    > hh or HH = hours
    > mm = minutes
    >

    cool thanks!
    mark, Aug 26, 2004
    #4
  5. mark

    mark Guest

    "Shiva" <> wrote in message
    news:...
    > Hi,
    >
    > Use {0:dd/MM/yyyy HH:mm}
    >
    > "mark" <> wrote in message
    > news:05jXc.21$...
    > i can format dates without a problem like - {0:dd/MM/yyyy}
    > how can i add just the hour and minutes as well ? eg 26/08/2004 11:39

    (24hr)
    >
    > thanks
    >
    > mark
    >

    thanks - working good now

    mark
    mark, Aug 26, 2004
    #5
    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. Chris Berg
    Replies:
    0
    Views:
    785
    Chris Berg
    Oct 27, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,244
    Michael Borgwardt
    May 30, 2004
  3. Keith Cochrane
    Replies:
    2
    Views:
    609
    Keith Cochrane
    Aug 6, 2006
  4. Summu82
    Replies:
    5
    Views:
    861
    Richard Heathfield
    Jun 7, 2006
  5. David Hearn
    Replies:
    1
    Views:
    412
    David Hearn
    Sep 10, 2003
Loading...

Share This Page