Click here to Skip to main content
15,078,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my javascripti use var now = new Date('<%= DateTime.Now.ToString() %>'); it shows server system time but i use same manner in jquery it is not show so please tell how can i get server system time in jquery



thanks in advance
by
Meganathan.
Posted

1 solution

You are not going to get the system date/time in JQuery because it is run on the client-side. You would need to make an AJAX call, using JQuery, to the server to get the time. There are numerous examples of this since it is a basic Hello, World type of task.
   
Comments
[no name] 10-Mar-12 10:23am
   
This is JavaScript with server-side binding not AJAX. If you can't tell the difference then no example I can give will make any sense to you.

[Comment this is in response to was deleted by OP]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900