+ 1
Validating dates in php
I'm trying to validate date on php and also validate end date to be greater than start date.
6 ответов
+ 2
What's your date format?
+ 2
dd-mm-yyyy
+ 2
Here is a regex to match your date format:
/\d{2}\-\d{2}\-\d{4}/
2 digits - 2 digits - 4 digits
+ 1
@Ace thank you
it was the function that had me confused
+ 1
thanks everyone