Re: simpledateformat

Prashant Pai <prapai_jjava-/[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
The desired output is being able to parse that string.

so if I do

SimpleDateFormat sdf = new
SimpleDateFormat("MM/dd/yyyy HH:mm:ss z");

System.out.println(sdf.parse("08/01/2002 12:00:00
EST"));

Then I get "Thu Aug 01 13:00:00 EDT 2002"

What do I do to keep it in EST?

Thanks,
Prashant.


--- Kalpeshkumar soni <[email protected]> wrote:

> The input date itself shows timezone information
> (EST)
>  what is the desired output?
>  kalpesh
> 
>  On 9/19/05, Prashant Pai <prapai_jjava-/[email protected]>
> wrote: 
> > 
> > I am using a java.text.SimpleDateFormat in Java 5
> to
> > parse the date "08/01/2002 12:00:00 EST". However,
> the
> > formatter recognizes my locale and forcibly
> applies
> > Daylight Savings. How to I tell the formatter to
> not
> > apply daylight savings?
> > 
> > TIA,
> > Prashant.
> > _______________________________________________
> Juglist mailing list
> [email protected]
>
http://trijug.org/mailman/listinfo/juglist_trijug.org
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.