Working with dates in Microsoft Flow
In my journey of using Microsoft Flow, I had some frustration this week on working with dates. The problem we had is as follows, with the sending of the emails, the dates are in UTC. To make it usable, we needed to convert it to our time zone.
Convert date and time to a time zone
For this Microsoft has built-in functions like “convertFromUtc”, this function converts the input date from UTC like a SharePoint date to any time zone. convertFromUtc(triggerBody()?[‘mydate’],‘W. Europe Standard Time’,‘dd-MM-yyyy H:mm’) this will convert the time to UTC+1. The input uses the default ISO 8601 format https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#the-round-trip-o-o-format-specifier and to find the correct name you can take a look here https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values
