File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to get server time and client time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to get server time and client time " Watch "how to get server time and client time " New topic
Author

how to get server time and client time

bappa
Greenhorn

Joined: Mar 11, 2008
Posts: 15
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.


S K B<br />SCJP 1.5 (83%)
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
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.


Jigar Naik


Syed Saifuddin
Ranch Hand

Joined: Sep 01, 2003
Posts: 130
Hi

The solution for client side is javascript and over server you have java.util.Date


Thank You & Best Regards,

Syed Saifuddin,
Senior Software Engineer

SAP Oracle AIX & Java Training
http://www.socialinet.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get server time and client time
 
Similar Threads
What is Client VM?
Connection reset by peer
JSP Performance
problem with fetching Date
need help for tracking time?