cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

11 REPLIES 11
vecerpa
Memorable Member
Memorable Member

Hi @Anonymous,

 

It should be used this way:

 

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

P.

Anonymous
Not applicable

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

 

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

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 

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.

Anonymous
Not applicable

Hi @vecerpa

 

Now is working fine, thank you so much

 

Greatings from Iceland

Anonymous
Not applicable

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
Memorable Member
Memorable Member

Hi @Anonymous,
Yes it is possible, just in formatdate use 'dddd' and this will give you day in name like Monday.
P.
Anonymous
Not applicable

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.

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?

thanks for the answer, 

 

Is there any way I can add 2or3 days, data given by MS form or by manual tigger.? currently I'm using this expression which only adds days to current date. 

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

Thank you so much in advanced.
 
 
 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,800)