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
- 2.1K All Categories
- 17 General
- 154 Installation / Setup
- 988 Flows
- 86 Rules
- 199 Administration
- 203 Portal
- 429 General Q & A
- 596 Forms
- 282 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 137 Pages
- 1 Process Mining
- New Features
- 147 Datastructures
- 49 Repository
- 165 Integrations
- 25 Multi-Tenant
- 21 SDK
- 39 Modules
- 36 Settings
- 19 Active Directory
- 12 Version 7
- 34 Version 8