Usage of Add Days in Power Automate

Usage of Add Days in Power Automate

Date calculations are a common requirement in Power Automate workflows. Whether you need to calculate due dates, reminder dates, expiration dates, or follow-up schedules, the addDays() function provides a simple and efficient solution.

The addDays() expression allows you to add or subtract a specific number of days from a given date and return the updated value.

What is addDays()?

The addDays() function adds a specified number of days to a date value.

addDays(
utcNow(),
7
)

The above expression returns a date that is 7 days ahead of the current date.

Add Days to a Date

You can use positive numbers to move forward in time.

addDays(
'2025-01-01',
30
)

Output:

2025-01-31

Subtract Days from a Date

Use negative numbers to move backward in time.

addDays(
utcNow(),
-15
)

This returns a date that is 15 days before today.

Format the Output Date

You can combine addDays() with formatDateTime() for custom output formats.

formatDateTime(
addDays(
utcNow(),
10
),
'dd/MM/yyyy'
)

Example Output:

25/12/2025 Important: Positive values add days, while negative values subtract days. The function works with UTC dates and custom date values.

Common Use Cases

Best Practices

Key Takeaways