cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Task Due Date - Day and Time Formatting in MS Flow

I have created a Flow that generates a task. The Task due dates uses the addDays() expression. That is working as intended. 

 

I also want to create a Reminder with both a predefined date and time value. The reminder should be one day before the due date at 9:30 am local time. The function below is working with the exception the time outputted in Outlook task is UTC time, five hours behind. How do I ensure that the time is shown as 9:30 am? 

 

formatDateTime(addDays(utcNow(),2,'yyyy-MM-ddT09:30:00'))

Additionally, is there an expression that can be written for the reminder field on the task that subtracts one day form the due day field. The way the current expression is written is that I've just added one less day that what I put in the due date expression. It would be nice if the reminder field could auto calculate and subtract one day from what ever was in the due date expression. 

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Task Due Date - Day and Time Formatting in MS Flow

Hi @buildingblocks,

 

Could  you provide a screenshot of your current Flow configuration? 

If you know the UTC time of your time zone, you could use addHours() function to add the corresponding hours difference based on the time you have formatted the time to 09:30. This will ensure that the Reminder Date time is on Outlook task displayed as 9:00 am, like:

addHours(formatDateTime(addDays(addDays(‘Start date’),3),-1),'yyyy-MM-ddT09:30:00Z'),6)

I don't know that you how to set the start date here, so I used Compose to set a date. The time zone is UTC-6, so it adds six hours.

17.PNG

Please take a try and free feel let me know if you have any question.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Regular Visitor

Re: Task Due Date - Day and Time Formatting in MS Flow

I am trying to do something similar. There is a field [ProposalDueDate] that is filled in when the item is created. I need the field [EstimateDueDate] (which is hidden) to calculate off the [ProposalDueDate] with a result of 5 days prior. If it is possible to be 5 working days I want that.

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,616)