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.4K All Categories
- 84 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 111 Rules
- 275 Administration
- 214 Portal
- 498 General Q & A
- 716 Forms
- 350 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 188 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 70 Repository
- 231 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions