cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xxxxmints
Helper IV
Helper IV

get zero in month value

Hello

 

My flow creates a folder with the year and month and surname as the folder name. So if today is 11 December, the folder is labelled 2212 Test. But if it is January then the result is 221 Test. 

 

I need it to be 2201 Test.

 

Can someone help me make sure the month is always 2 figures? Thanks in advance 🙂

 

2022-01-11 11_16_15-Edit your flow _ Power Automate.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

The fix is to not use the int() and make them string variables.  Your formatDateTime() will result in '01' as a string.  That is what you want to concat.  If you put it in an Int() it will convert the string '01' to the number 1.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

View solution in original post

1 REPLY 1
Pstork1
Dual Super User
Dual Super User

The fix is to not use the int() and make them string variables.  Your formatDateTime() will result in '01' as a string.  That is what you want to concat.  If you put it in an Int() it will convert the string '01' to the number 1.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,668)