Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get server time and client time

 
bappa
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I want a program to get the time of server as well as client. By only java servlet. Any help in this regard is highly appreciated. Thanks in advance.
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as i know there is no straight forward way of doing it.

you can send client time as a request parameter to the servlet and you can get the client time using java script.
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

The solution for client side is javascript and over server you have java.util.Date
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic