Set Variable to Current Date with Power Automate Desktop

25 Views Asked by At

I want to set variable month to be able to get into folder with date number as the folder name (e.g. 24022024).

Now I can do it with set variable and set the value to the specific month like this. But, I wish to not having to change the value every month. Any idea of how I could achieve that? enter image description here

1

There are 1 best solutions below

2
mfdoomfan On

If I understand correctly, you wish to get a formatted datetime value in MMyyyy format. You can basically just use the "Get current date and time" action and then convert that into text. Here is a screenshot of the setup of the action:

Convert datetime to text setup