I'm looking to validate a date submitted through a
form and I cannot decide which would be the best way
to do it. The form of the date needs to be:
-MM-DD.
At the moment I'm torn between using a regex,
something like: 20[\d][\d]-[0-1][\d]-[0-3][\d]
or using the checkdate() function.
Does anyon
David Bevan wrote:
Hi all,
I'm looking to validate a date submitted through a
form and I cannot decide which would be the best way
to do it. The form of the date needs to be:
-MM-DD.
At the moment I'm torn between using a regex,
something like: 20[\d][\d]-[0-1][\d]-[0-3][\d]
or using the check
2 matches
Mail list logo