aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Server Date time at the client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Server Date time at the client" Watch "Server Date time at the client" New topic
Author

Server Date time at the client

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi all

I need to show the user Server Date-time in my jsp and it should be running ins ysnc with the server ............This is because the client needs to be aware of the server time as he needs to enter date-time for doing some specific task .............

Is there anyway to do that ?? i have an idea to implement the time (but not date) .ie on loading of the page i will get the server time and through some a javascript function i will execute a function after every second and i will manually run that clock(i mean after every second i will increment the seconds and if it reaches 59 i will increment the minutes field..........)


so can any one help me in implementing this ??
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
This is what I would do:



Eric
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Thanks eric

Its perfectly working with some changes ..........
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Server Date time at the client
 
Similar Threads
Dealing with Time Differences
Time Triggered events in Javascript
Cade example - where is security handled?
Moving a timer?
Java time with servlet in-accurate