dayOfWeek function(Power Automate Cloud flows)

Japanese version.

Determine the day of the week.

Spec

dayOfWeek('<timestamp>')
ArgumentDefaultDescription
timestampRequired fieldSpecify the date and time of the decision.

The result is returned as an integer.

Day of weekResult
Sunday0
Monday1
Tuesday2
Wednesday3
Thursday4
Friday5
Saturday6

How to use

In most cases, it is used in the "value" when initializing or setting variables of type "string".

Click on the "Expression" tab, dayOfWeek, and the function name and () will be set in the expression field.

Specify the date of the extraction source as an argument.

If you want to use dynamic content or variables, the ,delimiter is the same.

(How to get dynamic content with expressions.)

Click on the OK button, and if the display looks like the following, the setting is complete.

You can change the function by clicking this purple icon.

dayOfWeek('2022-05-15') results in 0 for Sunday.

For those who want to learn Power Automate Cloud flow effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.

Links

Date and time Functions(Power Automate Cloud flows)