You can send your server date/time in the web page and have the JavaScript determine the difference between that and the browser date.
Depending on your exact requirements, you might also consider using UTC date/time which, as its name implies, is universal.