Results 1 to 5 of 5

Thread: Format time!

  1. #1

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    Format time!

    Hi there!
    I want to use HH24:MM format for the time. Please help me.

    Suppose if Time now is 10:30PM, then I want to display as 22:30.
    J£ßä

  2. #2
    Junior Member
    Join Date
    May 2002
    Posts
    20
    Format(MyDateTime, "HH:mm:ss")

    Like so?

  3. #3
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    Or MyDateTime.ToString("hh:mm:ss")

  4. #4
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446
    Use the Culture="es-ES" in Page level
    and write the following Code

    Dim myDts as DateTime
    response.write(myDts.now.toString("HH:mm"))
    prasad

  5. #5

    Thread Starter
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265
    Hi!
    Thank you all for the help.

    Actually this worked for me.

    Format(MyDateTime, "HH:mm")
    J£ßä

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width