Hey!
You didn't include any code snippet. Are you doing something like this:
//Get another Calendar for right-now
Calendar calRightNow = Calendar.getInstance();
If you do that in your servlet code, you will get the server's date.
BTW Partha, this E request is grossly off-topic for SERVLET-INTEREST E-list.
Please ask questions like this elsewhere. Sorry if I sound bitter but today I
have 98 messages to review from this list and most of them are off topic like
yours.
Sans adieu,
Danny Rubis
partha wrote:
> Hi,
>
> I am facing a problem with Date in Servlet.
> My Servlet is using the Calender Class
> to get the Date and client is accessing thru
> HTML.
>
> Should not it show the Server time? But
> I am getting the Client Machine time!!!!!
>
> Can anybody put some light on it?
>
> Thanks
> Partha
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html