Hi javier,



i think the following code sample will help u a lot !!!

just try this code!!!

 SimpleTimeZone pdt = new SimpleTimeZone(-4 * 60 * 60 * 1000, "your time zone");

sanjeev

-

On Tue, 31 Aug 1999 09:00:33   Javier Tomi wrote:
>Hi, I'm been working in a Servlet that make a page and, in this page I`m showing the 
>date of the day using this code:
>
> DateFormat df = DateFormat.getInstance();
> String zone = "GMT-4:00";
> TimeZone tz = TimeZone.getTimeZone("America/La_Paz");
> df.setTimeZone(tz);
> java.util.Date date = new java.util.Date();
>
>for printing the date I'm using:
>
>df.format(date)
>
>My problem is this, no matters wich string for "zone" I use, it allways displays the 
>same time, and I want the time of my country (VENEZUELA), Windows call my Time Zone 
>Caracas/La Paz. Does anybody knows why this code is not showing me my time?
>
>Thank you very much...
>
>Javier Tomi
>


Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.com

___________________________________________________________________________
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

Reply via email to