
Display Local Date and Time
Question: JavaScript’s date() function gives the user’s computer date and time. How do I display my local date and time on my Web page regardless of where the user surfs from? Answer: Unfortunately, there is no way to do this with client-side JavaScript. You’ll need to do server-side scripting to