Replies: 1 comment
-
I ended up using: deliveryDate: schema.date(
{
format: 'dd/MM/yyyy',
},
[rules.afterOrEqual('today')]
), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On my local environment, date validation works as expected, but on my prod environment. I get an deliveryDate.after validation error (on a flashMessage).
I'm guessing it has something to do with the date being localized. But I can't figure out why it's working in my local env and not on my production server, It's being sent by the form in this format: "dd/MM/YYYY".
Any pointers or any more info you need, just let me know. Thanks in advance.
Here's the code:
Beta Was this translation helpful? Give feedback.
All reactions