Welcome Guest, Not a member yet? Register   Sign In
help - how to validate a date field?

[eluser]Frank Rocco[/eluser]

What is the best way to make sure a date entered is valid for mm/dd/yyyy?
I am using form_input



[eluser]Frank Rocco[/eluser]
Still not working.
Does anyone have an example of date validation?

[eluser]Devon Lambert[/eluser]
Hey Frank,

You could try splitting out the date using explode().

Then once it's split, do a validation check on each array item.

Hope it helps.

Theme © iAndrew 2016 - Forum software by © MyBB