Get Server time

javascript Tehrān, Iran
  • 14 years ago

    Hi buddies,

    I want to get server time in javascript. How can I do that??

    Thanks in advance

  • 14 years ago

    Hi Mulish

    Mostly we are using javascript for client side operation.
    Actually Ur requirement is get time from server then why r u trying to write in clientside coding?

    Not directly. The client does not know the time on the server. You can write some JavaScript that attempts to work out the time offset using the GMT offset for your time zone.

    Any way
    This follwoing links may helpful for u.

    http://javascript.internet.com/time-date/serverdate-to-javascript.html

    Regards
    Hari K
















  • 14 years ago

    Realy Thanks Hari,
    I want to show a fixed time to all users per second. So I need JavaScript code for that.
    Wink [;)]

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon