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. Advertisements

  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. Advertisements

  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. 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. Chris Berg
    Replies:
    0
    Views:
    1,071
    Chris Berg
    Oct 27, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,776
    Michael Borgwardt
    May 30, 2004
  3. Gerrit Holl
    Replies:
    8
    Views:
    678
    John Roth
    Nov 18, 2003
  4. Gerrit Holl
    Replies:
    12
    Views:
    897
    Gerrit Holl
    Nov 20, 2003
  5. Keith Cochrane
    Replies:
    2
    Views:
    846
    Keith Cochrane
    Aug 6, 2006
  6. flamesrock
    Replies:
    8
    Views:
    801
    Hendrik van Rooyen
    Nov 24, 2006
  7. Summu82
    Replies:
    5
    Views:
    1,116
    Richard Heathfield
    Jun 7, 2006
  8. David Hearn
    Replies:
    1
    Views:
    528
    David Hearn
    Sep 10, 2003
Loading...