Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Get Date from nodes in Planner Task to set Due Date in new Planner task

(0) ShareShare
ReportReport
Posted on by 25

I have the following Planner Task:

MicrosoftTeams-image (1).png

I need the date in nodes under "start" to create a new Task with the due date "start date (in this case 01.04.2023) - 7 days". How can I impement this?

  • Verified answer
    Expiscornovus Profile Picture
    32,140 Most Valuable Professional on at
    Re: Get Date from nodes in Planner Task to set Due Date in new Planner task

    Hi @ChristopherHau,

     

    You can use the same approach as in the previous thread. Use an indexOf to find the Start: label. Use substring to retrieve the 10 characters of your 01.04.2023 string value. You do need to use some split functions to split (on the dot) the year month and day values and turn it into the correct datetime format (yyyy-MM-ddTHH:mm:ss.fffZ) with a concat for the due date field though.

     

    Below is an example

     

    concat(split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Start Time Found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[2], '-', split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Line Manager found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[1], '-', split(if(equals(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), -1), 'No Line Manager found', substring(outputs('Get_task_details')?['body/description'], add(indexOf(outputs('Get_task_details')?['body/description'], 'Start: '), 7), 10)), '.')[0], 'T00:00:00.000Z')

     

    duedatetime.png 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1