beforeValidate it's running after the validation #13565
Unanswered
FredericoGrz
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to include inside my beforeValidate hook function to format the date to the format accepted in the database. raw date format "DD/MM/YYYY", formatted date: "YYYY-MM-DD".
But when the beforeValidate function triggers the value of my date is "Invalid Date" and the custom msg from incorrect date is triggered.
Can someone help me, please?
Beta Was this translation helpful? Give feedback.
All reactions