Compare Dates in Rules
Comments
-
There is not Equal Operator available when comparing two Date variables in a rule. How Can I compare these two date values?
-
There is the operator "Is" for comparing the Dates.
[color=rgb(127, 140, 141)][font=Roboto][img]att6[/img][/font][/color]If we pass the whole Date Object in it will compare the Date and Time. If we only need the Date without the time to be compared, then we will need to go down one sub level when choosing the variables for comparison.
[color=rgb(127, 140, 141)][font=Roboto][img]att5[/img][/font][/color]
In the example below we are comparing the whole object. When we debug it shows that it will evaluate the time variable as well.
[color=rgb(127, 140, 141)][font=Roboto][img]att4[/img][/font][/color]
[color=rgb(127, 140, 141)][font=Roboto][img]att3[/img][/font][/color][color=#7f8c8d]
[/color]In the example below we are comparing only the Date. The time will be default to 12 am.
[color=rgb(127, 140, 141)][font=Roboto][img]att2[/img][/font][/color]
[color=rgb(127, 140, 141)][font=Roboto]
[/font][/color]
[color=rgb(127, 140, 141)][font=Roboto][img]att1[/img][/font][/color]
[color=rgb(127, 140, 141)][font=Roboto]
[/font][/color]
[color=rgb(127, 140, 141)][font=Roboto]
[/font][/color]
[i]edited by faiza@decisions.com on 3/29/2021[/i]
Howdy, Stranger!
Categories
- 4.3K All Categories
- 73 General
- 11 Training
- 206 Installation / Setup
- 1.1K Flows
- 110 Rules
- 268 Administration
- 212 Portal
- 496 General Q & A
- 709 Forms
- 343 Reports
- 3 Designer Extensions
- 48 Example Flows
- 57 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 184 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 58 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions