Welcome Guest, Not a member yet? Register   Sign In
DateTime field validation
#1

I'm trying to validate a dateTime field but I can't get it to work, is this not possible or am I doing something wrong?
PHP Code:
'myDateTime' => 'required|valid_date["Y-m-d H:i"]'
Reply
#2

Lose the double quotes in the square brackets.
Reply
#3

(03-18-2025, 06:33 AM)grimpirate Wrote: Lose the double quotes in the square brackets.

Perfect, I missed the quotes during the various tests, thanks, it seems to work
Reply




Theme © iAndrew 2016 - Forum software by © MyBB