Get Date details (day, month, year) in GWT

后端 未结 4 620
粉色の甜心
粉色の甜心 2021-01-04 01:22

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

4条回答
  •  执念已碎
    2021-01-04 01:38

    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.

提交回复
热议问题