fix: MinDate & MaxDate constraint message unclear
Description
With the version of [email protected], it allows us to pass dynamic Date to the MinDate and MaxDate (with PR https://github.com/typestack/class-validator/pull/1692). However, when I tried to use MinDate with a past date it throws an error which is unclear or unreadable. I think it is because while building the message, buildMessage function is not invoking the function which returns date.
Minimal code-snippet showcasing the problem
@MinDate(() => new Date())
@MaxDate(() => new Date())
Expected behavior
Replace () => new Date() with it's invoked version.
Actual behavior

Maybe this file can be referenced since it is also using function as a parameter.
It would be nice to see the actual date in the error message. Do you want to take a stab at implementing this, @EmirBoyaci?
It would be nice to see the actual date in the error message. Do you want to take a stab at implementing this, @EmirBoyaci?
Hi, I did some changes and currently it is working. You may check whenever you've free time.
Any news about this issue? I'm currently using v0.14.1 and this behavior still exists.