Date and Time Actions in Power Automate Desktop
This action retrieves the current date and time.
- From the Actions panel, drag and drop the Get current date and time action into the workspace. Add Current date and time from Retrieve and time zone as system time zone. The output will be stored in the CurrentDateTime variable. Click on Save.

- We can also select a Specific time zone and then specify which time zone we want.

- Save and Run the flow. We get the current date and time.

List Variable in Power Automate Desktop
This action adds a specific number of hours, days, minutes, and seconds.
- From the Actions panel, drag and drop the Add to datetime action into the workspace. Add CurrentDateTime add 1 to increase the hours. Click on Save.

- We have options in Time Unit as Seconds, Minutes, Hours, Days, Months, and Years.

- Save and Run the flow. We get the current date and time increased by 1 hour.

Database Actions in Power Automate Desktop
Finds the difference between the two dates in hours, minutes, seconds, and days.
- From the Actions panel, drag and drop the Subtract dates action into the workspace. Add From date and Subtract date. Get difference in Days and click on Save.

- Save and Run the flow. We get the difference between the specified two dates in days.

Variables in Power Automate Desktop
Date and Numbers text actions are used to manipulate numbers, dates, and time in the power automate desktop. It can be used to change the format of numbers and dates. For example, we can change the number representation of numeric value to the text value.
Creating a flow with the folder actions
- Open Power Automate Desktop App.

- Firstly, we need to create a flow. Click on New flow.

- Create a flow name date-num-flow in Power Automate Desktop.

PDF Automation in Power Automate Desktop
Converts a text representation of a date and/or time value to a DateTime value
- We have a date in E1 the format of dd/MM/yyyy.

- From the Actions panel, drag and drop the Read from Excel worksheet action into the workspace. Add ExcelInstance variable retrieve from The value of a single cell from Start column E and start row 1.
- The output will be in the ExcelData variable and click on Save.

- From the Actions panel, drag and drop the Convert text to datetime action into the workspace. Add ExcelData variable to Text to convert and represent in the custom format of dd/MM/yyyy. The output will be in the TextAsDateTime variable and click on Save.

- Save and Run the flow. We get TextAsDateTime in mm/dd/yyyy format and with time.

XML Automation in Power Automate Desktop
Converts Date or time value to text representation format.
- From the Actions panel, drag and drop the Convert datetime to text action into the workspace. Add the date use format as Standard and Short date. The output will be in the FormattedDateTime variable and click on Save.

- From the Actions panel, drag and drop the Write to Excel worksheet action into the workspace. Add ExcelInstance variable and value to write as FormattedNumber. Write on specified cell D2. Click on Save.

- Save and Run the flow. We get FormattedDateTime in mm/dd/yyyy as default format as a text value (as mentioned in image).


CMD actions in Power Automate Desktop
About Author : I am Sharvari Raut, having sound knowledge and experience in technical writing. Currently, pursuing my B.Tech in Computer Science and Engineering.