Thanks for your answer. this is marked as deprecated and it's not the good value, that's not 2010. I would rather use a non-deprecated method.
On Mar 19, 9:33 am, Joe Cole <[email protected]> wrote: > Apologies... > > int year = new Date().getYear() > > On Mar 19, 9:04 pm, tim <[email protected]> wrote: > > > Hi all, > > > I would like to get the year of the current date, but this is not > > working : > > > int year = Calendar.getInstance().get(Calendar.YEAR); > > > How to use date in gwt ? > > > Thanks in advance for your answer -- 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.
