Click here to Skip to main content
16,004,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a web site that required the date to be picked from the place where the site is currently opened. as i am new in this so i have no idea how to get date.


Thanks in advance

Regards

Rohit
Posted

1 solution

JavaScript runs on the client computer, so it will return the date/time on the user's computer. See more here: http://www.webdevelopersnotes.com/tips/html/getting_current_time_using_javascript.php3

If you need to return that value to the server, you can always use a little AJAX to first get the value then send it back to the server then subsequently display something to the page based on some server processing of the date.
 
Share this answer
 

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