Custom Date Parsing
I have a date that is being passed in as MM/YY and I need it to be formatted as MM/01/YYYY, but Decisions is making it MM/YY/2024.
Ex. If I send in 12/23, I need it to be 12/01/2023 not 12/23/2024. How can I achieve this?
Comments
-
You can use the Set Date on Date Time step (found under Data > Dates) to do this. You will want to have a constant date set for the Date Source (doesn't matter what date you pick) and set the Constant for the Day to 1. For the month, select the Date that's being passed in and find the Month property. Lastly for the year, select the date and map the Day to the Year.
Documentation: https://documentation.decisions.com/step-library/docs/set-date-on-date-time-step
Howdy, Stranger!
Categories
- 4.3K All Categories
- 70 General
- 11 Training
- 206 Installation / Setup
- 1.1K Flows
- 109 Rules
- 268 Administration
- 212 Portal
- 496 General Q & A
- 706 Forms
- 338 Reports
- 3 Designer Extensions
- 48 Example Flows
- 56 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 184 Pages
- 5 Process Mining
- New Features
- 182 Datastructures
- 69 Repository
- 228 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 130 Lunch And Learn Questions