AnsweredAssumed Answered

Question about dateDiffDays

Question asked by nmjohns on Aug 7, 2017
Latest reply on Aug 13, 2017 by emha

I'm apparently doing this wrong. I'm trying to add a validation rule on a date picker that says If Choice A is picked for control named choiceLetter,  check if the date selected is more than 120 days PREVIOUS to Current Date, and if it's true then the date is invalid. I can't even get the date rule working regardless of choiceLetter control. Is the below validation rule not correct? It seems like regardless of the date selected it fails the validation.

or(dateDiffDays({Self}, Current Date) < 120, {Self} < Current Date)

Outcomes