cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pasquale_p
Helper I
Helper I

add year+1 from today

Hi all, 

I need your help to set a process where every JAN 01st 20XX, create a folder named as 20xx+1 (e.g. today is Jan 01st 2022, and, I need to create a folder named 2023

 

how I can add 1 year more?

 

thanks to all will helps me

 

 

 

pasquale_p_0-1658561825331.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
David-
Solution Sage
Solution Sage

You can use this for your initialize variable string: 

 

addDays(utcNow(),365,'yyyy')

 

Although you may want to add 366 days to account for leap years.

View solution in original post

4 REPLIES 4
David-
Solution Sage
Solution Sage

You can use this for your initialize variable string: 

 

addDays(utcNow(),365,'yyyy')

 

Although you may want to add 366 days to account for leap years.

MarconettiMarco
Super User
Super User

Hello @pasquale_p ,

please use this expression:

 

formatDateTime(addDays(utcNow(),365),'yyyy')

 

BR,

Marco

MarconettiMarco
Super User
Super User

@pasquale_p are you sure that the following expression is working?

 

addDays(utcNow(),365,'yyyy')

pasquale_p
Helper I
Helper I

Hi Marco, 

the David's solutions is working well

 

thanks for your support too

 

 

pasquale_p_1-1658595537601.png

 

 

pasquale_p_0-1658595476237.png

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,417)