All,
In my Flow (triggered from a PowerApp) I'm creating a SharePoint Calendar List item. As part of the item I want the Start Time to be the passed in via the PowerApp StartDate whereby the time portion of the datetime is: "00:00:00Z". Similarly, I want the End Time to be the passed in via the PowerApp StartDate whereby the time portion of the datetime is: "23:59:59Z". This will create an "all-day" entry on the SharePoint calendar. How do I make this happen?
Note: keep in mind I don't know whether or not the PowerApp StartDate provided has any time associated with it. It might be zeros and then again it might be some randon time of a day.
Example:
- PowerApp inputed StartDate is: 2018-01-24T12:00:34
- I want the Create item Start Time field to be set to: 2018-01-24T00:00:00Z
- I want the Create item End Time field to be set to: 2018-01-24T23:59:59Z
I've tried to do all sorts of string manipulation as well as applying datetime funcitons like addHours, addMinutes, and addSeconds. Nothing seems to work.
HELP, thanks!