web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add days to time stamp
Power Automate
Answered

Add days to time stamp

(0) ShareShare
ReportReport
Posted on by

Hello

 

I am trying to add two days to current day stamp but it is not working

Have tryed 

addDays(utcnow(),+2,'dd-MMMM-yyyy')
 
Any ideas for me
Categories:
I have the same question (0)
  • vecerpa Profile Picture
    786 on at

    Hi @Anonymous,

     

    It should be used this way:

     

    formatDateTime(addDays(utcnow(),30),'dd-MMMM-yyyy')

    P.

  • Community Power Platform Member Profile Picture
    on at

    Hi 

     

    Thank you for your reply, but is not working.

    I am creating an flow that sends email when a PDF file is created in a specific file 

    The email must contain 2 dates, current date and 2 days later date

     

    For current date i am using : 

    formatDateTime(utcnow(),'dd-MMMM-yyyy')

     

    I have not been able to find a way to have the date 2 days into the future 

     

    https://icecogmbh-my.sharepoint.com/:i:/g/personal/robert_johannesson_ice-co_com/EbLuR_r1ef1DqMiWZh_KPIIBAucViqrzTUXsjAvKITaVFA?e=yk0zLZ

     

    https://icecogmbh-my.sharepoint.com/:i:/g/personal/robert_johannesson_ice-co_com/EQPvQM6-NW9LkEH-TUNImpsB5Q02rndI_r3R_D-rvAjAkg?e=eZG1ka

     

  • vecerpa Profile Picture
    786 on at

    Hi @Anonymous,

     

    Sorry I had 30 days in expression I posted, the correct one is below:

     

    formatDateTime(addDays(utcNow(),2),'dd-MMMM-yyyy')

    As addDays() adds number behind , to utcNow() - today.

    Hope it will help.

    P.

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @vecerpa 

     

    I am sorry for bothering you

    The string just does not want to work for me 🙂

    It just gives me the same date as the first string

     

    formatDateTime(utcnow(),'dd-MMMM-yyyy') gives me the current date as i want

    Attached are shipping documents for our flight into Liege 26-February-2018

     

    formatDateTime(addDays(utcNow(),2),'dd-MMMM-yyyy') also gives me the same date

    • Goods are for Bell arrival on 26-February-2018

     

    But what i want to do is to have the date 2 days later 

    • Goods are for Bell arrival on 28-February-2018

     

    I have tryed for days 

  • Verified answer
    vecerpa Profile Picture
    786 on at

    Hi @Anonymous,

     

    I use it directly in mail notification, no need to compose it. Just use expression inside body of email:

     

    FlowParamOnStart4.PNG

     

    And there is notification that came to mail:

     

    FlowParamOnStart5.PNG

    So my question is, as I see that output from compose is named as output and you are using two compose actions, if you placed correct output to body. I don't see the dynamic contect tab on left on printscreen.

    P.

  • Community Power Platform Member Profile Picture
    on at

    Hi @vecerpa

     

    Now is working fine, thank you so much

     

    Greatings from Iceland

  • Community Power Platform Member Profile Picture
    on at

    Hollo again @vecerpa

     

    One more question if i may

     

    Do you know if i can add the weekday name to the date

     

    for example "Monday, 26-February-2018"

  • vecerpa Profile Picture
    786 on at
    Hi @Anonymous,
    Yes it is possible, just in formatdate use 'dddd' and this will give you day in name like Monday.
    P.
  • Community Power Platform Member Profile Picture
    on at

    I tried these steps in "Manually trigger a flow to create a task in Outlook" with the OOTB Flow template. It doesn't work.

     

    However, when I create a blank flow and then perform the steps; it works like a charm.

     

    Hence, the Flow Template for "manually trigger a flow to create a task" is broken and doesn't support setting due date.

  • Khh Profile Picture
    2 on at

    Hi, 

     

    Have a date field 'End Date' in SharePoint which I'm trying to send an email notification 30 days after the date set in that field.

     

    So rather than add days to UTC now I'm tring to add days to the date field 'End Date'

     

    I want my flow condition to be 'End date is equal to  End date + 30days'

     

    Is this possible and can anyone help with the expression?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard