when user selects a date, need to compare it with today() and get difference between years. Like difference between 2018 and 2020 is 24 months.
Please share a recipe. I understand if we need to use existing date time functions but would prefer a recipe on how to write in SAIL.
Discussion posts and replies are publicly visible
These look like useful functions, but is there any way to use them to tell if 2 date-times are in the same day in the user's time zone? Or do they use GMT?
I'm not sure about that plug-in, but it should be trivially easy to write an expression rule that does this, as far as I know. Check out the function userDay() (and maybe also userDayOfYear()).