Tuesday, September 4, 2018

Re: gwt datetime set date

dateItem = new DateItem("expDate");

This is not a GWT SDK class, so no idea if you will get useful answers here.

        dateItem.setEndDate(new Date(2030,1,1) );// is it possible to set the date to 2030 ? **********************************

 java.util.Date constructor takes a year from which you have to subtract 1900 (see Javadoc). So for year 2030 you would need to use new Date(2030-1900, 1, 1)

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment