Hello,
i want to patch a sharepoint list + create outlook element using one date/Time Value,
following code creates a datetime value from date picker + Timepicker(dropdown) and works fine:
UpdateContext(
{
VarCalStartTime: Text(
dte_Abw_Startdate.SelectedDate + Time(
Left(
dte_starttime.Selected.Value;
2
);
Right(
dte_starttime.Selected.Value;
2
);
"00"
);
"yyyy-mm-dd HH:mm:ss"
);
VarCalEndTime: Text(
dte_Abw_Enddate.SelectedDate + Time(
Left(
dte_endtime.Selected.Value;
2
);
Right(
dte_endtime.Selected.Value;
2
);
"00"
);
"yyyy-mm-dd HH:mm:ss"
)
}
)
Result is following Format: 2023-08-24 00:00:00 --> Outlook Element gets created in the correct way..
for Patching the SharePoint List is use this:
Start_Abwesend: DateTimeValue(VarCalStartTime);
Ende_Abwesend: DateTimeValue(VarCalEndTime);
This Format gets created: 24.08.2023, 00:00:00
Sharepoint List Format seems to be: 24.08.2023 00:00 (no comma and no seconds)
the Date always gets patched correclty, but time value nut - anyone got an idea how i can change the code?
its mandatory keep VarCalStartTime + VarCalEndTime for both "jobs"
thanks
Thomas
