Get First Day of the Month
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Get First Day of the Month

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version5.13.1
Root FolderExample Lab - Get First Day of the Month
Modules None
DependenciesNone

This Example Lab demonstrates how to use a Flow to take a DateTime value as an input to return the first day of that month.


Explanation

This Converter Flow takes in a DateTime input and then outputs a DateTime value of the first date of that month. This works by first formatting the Date into a "MM/YYYY" String, then parsing that String back into a DateTime. Because the String has no day, it defaults to the first of the month that is being parsed.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 5.13.1 or later using our Importing/Exporting article.





Was this article helpful?