I have two dates of type String
, the first in the format "yyyy.MM.dd"
, the second "HH: mm"
They converted them to a Date
type using SimpleDateFormat
;
So, I need to put them together, that is, the result should be "yyyy.MM.dd HH: mm"
Are there other options for how to add them, except
date.setHours();
date.setMinutes();