Thank you Salvador, I tried it, got wrong results:

   Date date = (Date) event.getValue();
   int year = date.getYear();
   month = date.getMonth();
   day = date.getDay();

the result was (year, month, day):  109, 3, 3

Has nothing to do with today's date components. Am I missing
something?

Do I have to convert from date.getTime()?


On Apr 16, 3:30 am, Salvador Diaz <[email protected]> wrote:
> Even though those Date methods are deprecated, you really have no
> other options to get the date fields. You'll have deprecation warnings
> all over the place, but until something like joda-time gets ported to
> GWT there's simply no other way
>
> Cheers,
>
> Salvador
>
> On Apr 16, 10:12 am, "tony.p.." <[email protected]> wrote:
>
> > Hi,
>
> > How do I get date components, eg: Month, Day, Year, from datepicker?
> > Since those are deprecated in Java Date and Calendar is not included
> > in GWT. I couldn't find a way nor any post about this issue.
>
> > Thank you,
> > Tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to