Always use `formatDateTime(), substring(), convertFromUtc(), convertTimeZone()` to drop the time part and ensure the dates are in the same timezone. The datetime in Power Automate is just a string representation of a timestamp in an ISO format. To compare dates, it's important to consider timezones and extract only the date portion. Functions like `formatDateTime(), substring(), convertFromUtc(), convertTimeZone()` can help with this. Timezones can be tricky, so it's helpful to refer to the list of default time zones provided by Microsoft.
Login now to access my digest by 365.Training