Charles Keepax schrieb:

> As for performing operations on Dates such as adding days I usually
> use the getTime method (this returns the Date as a long representing
> the number of milliseconds that have passed since January 1, 1970,
> 00:00:00 GMT) and operate on the dates as a long. So for example if I
> want to add a day I just add (24*60*60*1000) to the long then create a
> new Date object.

you're not the first giving this "advice". This way of adding
days is plain wrong. In countries with e.g. CEST adding 24 hours
to 10/30/2010 03:01 AM will result to 10/31/2010 02:01 AM.

So stop doing this kind of arithmetic and use Calendar on
server-side and wait (as I do) that there will some equal
kind of thing on the client side at some day. If I would
have the time to implement it, I'd program it for myself.



Regards, Lothar

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to