I need to get the day, month, year details from a Date
value but getYear()
is deprecated, gives year on 2 digits, and has problems with Y2K (2008 g
I don't think gwt will support Calendar in the future, may be it could support another date manipulation implementation. So, because the java recommendation about not using Date is not valid in Gwt and you have not any other option without importing a third party library, the right way is to use Date and ignore deprecation warnings.