Get Previous Month Start/End Date
  • 06 Mar 2023
  • 1 Minute to read
  • Dark
    Light

Get Previous Month Start/End Date

  • Dark
    Light

Article summary

Step Details
Introduced in Version8.10.0
Last Modified in Version-
LocationData > Date

The 'Get Previous Month Start/End Date' step will output the start and the end date of the previous month based on the DateTime provided as input to the step.


Properties

Inputs

PropertyDescriptionData Type
DateReference DateTime to determine the previous month
DateTime

Outputs

PropertyDescriptionData Type
End DateThis will return the End DateTime of the previous monthDateTime
Start DateThis will return the start DateTime of the previous monthDateTime

Example Inputs and Outputs

In the following example, we can see that the input to the step is March 15, 2023 and the step outputs the Start date as February 1, 2023 and the End date as February 28, 2023.

InputOutput
2023-03-15 00:00:00Start Date2023-02-01 00:00:00
End Date2023-02-28 00:00:00
Note:
This step will maintain the same time in the output as it was originally entered in the input field while only altering the date

Related Information

Similar step: Get Next Month Start/End Date Step


Was this article helpful?

What's Next