In my TypeScript code, I'm working with four fields of type Date:
StartDate
StartTime
EndDate
EndTime
My goal is to combine StartDate and StartTime into a single field called Start, as well as EndDate and EndTime into a field called End.
Despite attempting the following approach, it does not yield the desired result:
start: new Date(e.startDate).setTime(e.startTime.getTime()),
end: new Date(e.endDate).setTime(e.endTime.getTime()),