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.2K All Categories
- 65 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 261 Administration
- 212 Portal
- 490 General Q & A
- 694 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 76 Lunch And Learn Questions