Rounding Date and Time Values
  • 05 Oct 2023
  • 1 Minute to read
  • Dark
    Light

Rounding Date and Time Values

  • 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

Version6.9.0
Root FolderExample Leb - Rounding DateTime
Modules None
DependenciesNone

This Example Lab project demonstrates how to use a Converter Flow to round a DateTime to the nearest quarter-hour.


Explanation

This Example Lab project demonstrates how to round a DateTime value to the nearest quarter-hour. This is accomplished with a Converter Flow that uses Truth Table to determine the nearest quarter-hour. From there, the difference between the provided DateTime and the nearest quarter hour is calculated. That difference is used to adjust the supplied DateTime, which is then parsed to remove the seconds. With this Flow being a Converter Flow, it can be used on inputs of the DateTime type. For more info on Converter Flows, please refer to the documentation page linked below.

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 6.9.0 or later using our Importing/Exporting article.





Was this article helpful?