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
- 18 General
- 155 Installation / Setup
- 991 Flows
- 86 Rules
- 203 Administration
- 204 Portal
- 433 General Q & A
- 600 Forms
- 282 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 139 Pages
- 1 Process Mining
- New Features
- 150 Datastructures
- 50 Repository
- 169 Integrations
- 25 Multi-Tenant
- 21 SDK
- 40 Modules
- 38 Settings
- 20 Active Directory
- 12 Version 7
- 34 Version 8