1

At first i tried this with the Calender-Class but then i read, that it is not supported by GWT. Do you have suggestions? Thank you in advance.

Til
  • 11
  • 1

2 Answers2

2

Since GWT 2.7 you can use JsDate.

Adam
  • 5,151
  • 6
  • 29
  • 37
0

Yes, you should use the deprecated Date API. You should probably create a utility class for such date manipulation, something like CalendarUtil, but for hours/minutes. If Calendar (or any alternative) is every ported to GWT (or a date time library surfaces that is actually maintained), you can change the implementation in your utility class and the rest of your application will remain the same.

Community
  • 1
  • 1
Igor Klimer
  • 15,301
  • 3
  • 46
  • 57