Hi I am validating the date from a date picker using custom validation. I want to be able to choose any date from today. My expression is as follows: $value != empty and ($value > [%CurrentDateTime%] or $value = [%CurrentDateTime%]) $value is the date selected using date picker. But this expression throws an error when I choose today’s date. Can someone tell me why? Thank you!
Sherlin Susanna Shaji
try [%BeginOfCurrentDay%] instead of [%CurrentDateTime%]
as Custom date picker set Time as 00:00:00:00 Hrs.
Rahil Naveed Hayat
Can you please check and add the screenshot what’s the error you are getting in console while selecting the date?
Try adding [%BeginOfCurrentDay%] or [%BeginOfCurrentDayUTC%]and check. Thanks