Data Field, Time Field and Date-Time Field Arithmetics Question
Hi,
I have a date field and a time field (or even a date-time field and a time field) and I want them combined and then place in a date-time field, how can I do this, I tried a couple of things but I can't reach the desired results or even a correct one.
example: date-time-field = date-field + time-field
or even combining the time field with the date-time field directly
example: date-time-field = date-time-field + time-field
I even tried something like this, but I guess it's too much, maybe a simpler approach could work.
date-time-field= (date-field.toString("dd-MMM-yyyy") + " " + input.time-field.toString("HH:mm")).toTime("dd-MMM-yyyy HH:mm")
Thank you for the help.