Get current date and time Action(Power Automate Desktop)
This action is used to get the current date and time.
This action is useful if you want to include the date in the initial value of Display select date dialog or in the file name.
- 1. How to use.
- 2. Links
- 2.1. Date time Actions
- 2.2. Examples of Use
How to use.
Get current date and time Action from Date time onto the workspace.
Select whether to retrieve up to and including the date or the time.
Specifies in which time zone the current date and time should be retrieved.
Basically, "System time zone" is fine, but can be changed if necessary.
To change, change to "Specific Time Zone" and specify "Region/City".
The date information of the current time is stored.
It can be used as a variable in an action, such as the default value for Display select date dialog.
If you want to use it for file names, etc, If you want to use it for file names, etc., use the "Convert datetime to text" action to convert it without the / and : characters.
If you set the "format used" to "custom" and the "custom format" to yyyyMMdd, the date will be the year, month, and day.
In the case of this specification, if executed on 04/18/2021, the result will be 20210418.
The result will be stored in FormattedDateTime.
To include hours, minutes, and seconds, set the custom format to "yyyyMMddhhmmss", etc.