We updated from 10.3 to 10.4.2 across the board yesterday.
The DATEDIF function in workflow token calculator has stopped working. Or at least it changed and i can't figure it out.
I hit ok, it gives me a correct value of 10971
I run the workflow, and it errors out. Here is my test value, the exact same thing i entered into the test field in the calculator, I have it set as a date.
1/15/2020 11:52:58 AMToken CalculatorInvalid Date Value: Function: DATEDIF Expression: DATEDIF(%(testdate#"MM-dd-yyyy"#),TODAY(), "D") Message: 1/1/1990
Removing the MM-dd-yyyy formatting or wrapping the arguments in quotes did nothing. I've tried using the DATE(1990,01,01) as well as doing the full DATE(YEAR(),MONTH(),DATE()) syntax, i've also had it calculate a date by doing minus 10000 days from today, which works, and then put that in as my date1 token and it errors out saying it's an invalid date. I can't think of any other variations to test. In the past i feel like it's always worked with just about any format.
Any ideas? i've switched my processes to use c# scripts to calculate date differences but it's much faster and more convenient to build processes with the native token calculator.
edit: ignore the yyy typo in the formatting, that doesn't make a difference when fixed.