Hi all,
Trying to solve the following puzzle.
In my app the user can select a start date for an appointment, then in a separate dropdown the starthour of the appointment (from 0-23) and the startminutes of the appointment (00,15,30,45).
The same for the end time of the appointment.
I use the following code to send it to Outlook whereby the part in Italic is not relevant, my struggle is with starttime, endtime, timezone.
Office365Outlook.V4CalendarPostItem(LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
LookUp(Artists, ShopID = varShopID && Name = Dropdown5_1.Selected.Name,Initials)&":" & Dropdown4.Selected.Value &" " & varClientFirstName & " " & varClientLastName & " " & "€" & Value(InputPrice_1.Text),
Text(DateAdd(DateTimeValue(DatePicker1_3.SelectedDate & " " & TimeValue(Concatenate(DDStart_8.Selected.Value, ":", DDEnd_8.Selected.Value))),TimeZoneOffset(),TimeUnit.Minutes),"yyyy-mm-ddTHH:mm:ssZ"),
Text(DateAdd(DateTimeValue(DatePicker1_3.SelectedDate & " " & TimeValue(Concatenate(DDStart_9.Selected.Value, ":", DDEnd_9.Selected.Value))),TimeZoneOffset(),TimeUnit.Minutes),"yyyy-mm-ddTHH:mm:ssZ"),
"(UTC) Coordinated Universal Time");
I I book an appointment let's say for tomorrow 7th of September 2023, from 08.00-10.00, it will reflect as such in Outlook.
If I book the same appointment let's say on 10th of January 2024, it saves in Outlook as 07.00-09.00. I want it to reflect 08.00-10.00 as you can imagine.
I am in Amsterdam Timezone. I tried changing the "UTC Coordinated Universal Time" to "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna", but that does not do the trick.
Any help is more then welcome how to deal with this, driving me nuts 🙂
Many thanks in advance!