On 06/07/2010 04:58 PM, Rob Tanner wrote: > I have a Date() object that holds a date of birth and I want to > extract the year and make sure no one's trying to tell me they're 150 > years old, etc. The getYear method of the Date() class is deprecated > and you normally use a Calendar() to get the year. The problem is > that when I try to use a Calendar() object the application doesn't > know what it is. How can I extract the year from a Date() object and > not fall back on a deprecated method? > > Thanks, > Rob >
Calendar() isn't supported. Use the Date() class to remain within the GWT framework. If you really must have robust date handing, you can always call the server. -- 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.
