How to do calendar operations in Java GWT? How to add days to a Date?

Posted by Witek on Stack Overflow See other posts from Stack Overflow or by Witek
Published on 2010-03-27T01:55:16Z Indexed on 2010/03/27 2:03 UTC
Read the original article Hit count: 290

Filed under:
|

Since GWT does not provide the GregorianCalendar class, how to do calendar operations on the client?

I have a Date a and I want the Date, which is n days after a.

Examples:

a (2000-01-01) + n (1) -> 2000-01-02
a (2000-01-01) + n (31) -> 2000-02-01

© Stack Overflow or respective owner

Related posts about gwt

Related posts about java