Right so I have a calendar date selection with time.
Set two variables to pick up time like dd/mm/yyyy 08:00:00 etc
Hit confirm on the form to add it to a SP List and One time sticks, the other doesn't even though they are the same!
Code to set the variables:
Set(
startTime,
DateTimeValue(Text(selectedDate,DateTimeFormat.ShortDate) &" "& TimeValue(ddTimeFrom.Selected.Value))
);
Set(
endTime,
DateTimeValue(Text(selectedDate,DateTimeFormat.ShortDate) &" "& TimeValue(ddTimeTo.Selected.Value))
);
Then this is the confirm code for the specific date/time bits.
CheckOutFrom: startTime,
CheckOutTo: endTime,
At this point in the preview the startTime and endTime are calling back this:
startTime = 14/02/2022, 08:00:00
endTime = 14/02/2022, 18:00:00
However, when I look in the SP list they come through as this when the column are set to Date and display Time
startTime = 14/02/2022, 12:00 AM
endTime = 14/02/2022, 06:00 PM
How can that be??

Report
All responses (
Answers (