Obtain the First and Last day of the Month

Obtain the first and last day of the current month using a few variables and the 'Format Date Time' action

This task will demonstrate a method to obtain the first and last day of the current month using a few variables and the 'Format Date Time' action. This action is used to modify a date value so that it matches a required format. For example, the application being automated may require a date to be input in a specific format such as "mm-dd-yyyy." This action would be used to modify the value accordingly. 

Furthermore, the 'Date Time' action allows you to adjust the current date / time by years, months, days, hours, minutes and seconds simply by specifying a negative or positive number. You can specify other parameters such as the first day of the month or first month of the year by hard coding the current date value. For example, if you want to retrieve the first of the month, simply adjust the value from "mm-dd-yyyy" to "mm-01-yyyy." The comments within the task will provide more explanation.

Task Category:

Active Directory