Compare Dates in Rules

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]

Sign In or Register to comment.