Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Task Due Date - Day and Time Formatting in MS Flow

(0) ShareShare
ReportReport
Posted on by 10

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. 

 

  • Koreno Profile Picture
    Koreno 10 on at
    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.
  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard