Hi,
perhaps the DateUtil class could help...

http://gwt-ext.com/docs/2.0.4/com/gwtext/client/util/DateUtil.html

It has a method called add:

public static java.util.Date add(java.util.Date date,
                                 DateUtil.Interval interval,
                                 int value)

    Provides a convenient method of performing basic date arithmetic.
This method does not modify the Date instance being called - it
creates and returns a new Date instance containing the resulting date
value.

    Parameters:
        date - the date
        interval - the interval enum
        value - the value to add
    Returns:
        the new Date


I hope it helps you...

Leo


On Jan 19, 12:05 pm, Halabe <[email protected]> wrote:
> Hi,
>
> I am trying to do some date calculations on GWT-ext client side.
>
> I have two DateFields and a NumberField.
> The first datefield fdate is the original date and the second
> datefield sdate is the date after the number of days specified in the
> numberfield, nDays.
>
> Basically, I need:
> sdate.value = fdate.value + nDays.
>
> I searched in the group and found this 
> link:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> I prefer not to use deprecated methods and the other solution of
> converting to long time seems that it does not work with a huge set of
> dates.
>
> Are there any other suggestions or newly created classes that
> manipulate dates on GWT client side like the Calendar which is used in
> java.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to