To get the current date in Power Automate, you can use the built-in “Expression” feature. Here’s how to do it:
Add a new step: In your flow, add a new action where you want to use the current date.
Use the utcNow() function:
Click on the input field where you need the date.
Select the “Expression” tab.
Type utcNow() and click “OK”.
This will give you the current date and time in UTC format. If you need just the date, you can format it using the formatDateTime() function like this:
formatDateTime(utcNow(), 'yyyy-MM-dd')Here’s a step-by-step example:
Trigger: Start with any trigger, for example, “Manually trigger a flow”.
Add an action: Click “New step”.
Choose an action: Select an action like “Compose”.
Enter expression: In the “Inputs” field, select “Expression” and enter formatDateTime(utcNow(), ‘yyyy-MM-dd’).
Save and test: Save the flow and run it to see the current date in the specified format.
This will provide you with the current date in the format yyyy-MM-dd.
