Combining java.util.Dates to create a date-time

后端 未结 3 1322
孤街浪徒
孤街浪徒 2020-12-11 14:25

I have current have two UI components used to specify a date and a time. Both components return java.util.Date instances representing the calendar date and tim

3条回答
  •  没有蜡笔的小新
    2020-12-11 15:20

    I think you're approach is the best you're likely to get without using Joda time. A solution using SimpleDateFormats might use fewer lines, but is not really giving you any benefit.

提交回复
热议问题