calculate wold time.

Discussion in 'JavaScript' started by moove, Feb 6, 2007.

  1. #1
    i am from india.
    I have to display the uk time in my website.

    I did by calculating the difference between uk and india .

    it's working fine in india.

    When a us client will see the site then we have to display the uk time corresponding to us.but the program have been hardcoded the india and uk difference.


    I want to display the common time for all the world.

    http://www.viewproduction.com/cd/home.html

    rollover the images in the page then you can understand.


    can any one help me.

    thanks
     
    moove, Feb 6, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Try using toLocaleTimeString() function.
    You can get help for Date funcions here
     
    ajsa52, Feb 6, 2007 IP