Adding/subtracting 1900 is not a big problem.

Instead of setDay() use (also deprecated) setDate()

Also, take a look at DateTimeFormat
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsFormatting.html#datetimeformat

If you are concerned about using deprecated methods, you can always
convert a string to a Date or to an int using various
DateTimeFormat.parse(...) methods.

On Jan 4, 7:41 am, Tom Rada <tom.r...@gmail.com> wrote:
> Hi,
> let me apologize in advance for my trivial post, but I really don't
> know any better place to ask the question:
>
> I want to have a widget consisting of three list boxes allowing people
> enter their date of birth.
> However, it seems GWT lacks any support for working with date/time on
> client side.
>
> There is the old java Date class that has all methods deprecated - and
> that's the only positive thing I can say about it, because getYear
> returns some stupid number to that you have to add 1900 to get actual
> year, getDay returns value representing "day in week" value, etc.
>
> So, it isn't that hard to fill the combos with values, but such simple
> task like setting the actual day as selected in respective list box is
> impossible for me.
>
> How would you solve my issue? - I don't want to use any date picker
> (like the one provided by GWT)
>
> With Regards,
> Tom

-- 
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