How to validate Response Body Date against the Date Range Environment Variables

We have a internal tool within the company where we perform activity on participant and validate activity date using API. I am trying to figure out how I can test the date range boundary values. If i set the environment variable with a date that is outside the activity date i should see the Invalid date rage error. However if I select the date range within the boundary values i should see the participant data. Due to sensitivity I have masked the data

Here is what i did I set the params value as environment variable and setting the environment variable beginDate and endDate with dates but when i run the test i am getting an error.

How I found the problem:

I’ve already tried: