startOfHour function(Power Automate Cloud flows)

Japanese version.

Truncate the minutes and less from the date and time to only the date and time. (to make it 0 minutes and 0 seconds)

Spec

startOfHour('<timestamp>','<format>')
ArgumentDefaultDescription
timestampRequired fieldSpecifies the date and time of the conversion source.
Any format other than "yyyy-MM-ddTHH:mm:ss.ffffffffK" will result in an error.
formatyyyy-MM-ddTHH:mm:ss.ffffffffKSpecifies the format of the result. If not specified, the format is "yyyy-MM-ddTHH:mm:ss.ffffffffK" as well as "timestamp".

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, startOfHour, 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.

If you want to change the format of the result, specify the format in the second argument.

---

Links

Date and time Functions(Power Automate Cloud flows)