cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Add days to time stamp

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
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Add days to time stamp

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.

View solution in original post

10 REPLIES 10
Super User
Super User

Re: Add days to time stamp

Hi @Anonymous,

 

It should be used this way:

 

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

P.

Anonymous
Not applicable

Re: Add days to time stamp

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_...

 

https://icecogmbh-my.sharepoint.com/:i:/g/personal/robert_johannesson_ice-co_com/EQPvQM6-NW9LkEH-TUN...

 

Super User
Super User

Re: Add days to time stamp

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.

 

 

Anonymous
Not applicable

Re: Add days to time stamp

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 

Super User
Super User

Re: Add days to time stamp

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.

View solution in original post

Anonymous
Not applicable

Re: Add days to time stamp

Hi @vecerpa

 

Now is working fine, thank you so much

 

Greatings from Iceland

Anonymous
Not applicable

Re: Add days to time stamp

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"

Super User
Super User

Re: Add days to time stamp

Hi @Anonymous,
Yes it is possible, just in formatdate use 'dddd' and this will give you day in name like Monday.
P.
dhawalseth
Level: Powered On

Re: Add days to time stamp

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
Level: Power Up

Re: Add days to time stamp

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?

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 187 members 4,675 guests
Please welcome our newest community members: