On Mar 19, 9:47 am, tim <[email protected]> wrote:
> Thanks for your answer.
>
> this is marked as deprecated and it's not the good value, that's not
> 2010.

int year = 1900 + new Date().getYear();

> I would rather use a non-deprecated method.

A future version of GWT (that's already in trunk, just not yet
released) will have a JsDate class to wrap the native JavaScript Date.
It'd be a GWT-specific API but at least it won't be deprecated if
that's really bothering you.

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