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.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,073)