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,403
  • 6
  • 31
  • 38
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,321
  • 3
  • 47
  • 57