Monday, August 22, 2011

GWT Date 'week of year' and 'day of week' problem

Hi!

Due to the fact that the Java Calendar Class is (unfortunately) not
compatible with GWT I'm having some problems:

I need to generate a Date-Object out of the Information by "week of
year" and "day of week".

With the Calendar-class my code looks like:

Calendar cal = Calendar.getInstance();

cal.set(Calendar.WEEK_OF_YEAR, getComboBox_6().getSelectedIndex()+1 );

cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);

Is there any possibility to solve this problem by using the normal
'Date'-class or 'DateTimeFormat' or any other suggestions?

Thanks for your reply!

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate