Simple date validation, not working!!
Hi there,
This is a very simple issue, but I can't get it working...
Any clues?
// rule:
'birthday' => 'required|date|date_format:d/m/Y|after:01/01/1990',
// input:
27/10/2012
// Get
Invalid format
I'm asking this because I would like to know.
Do you really need to require it to be both a date and a date with specific format? Shouldn't one of them be sufficient?
By the Laravel Documentation, the two uses different PHP functions to validate the input.
Edit: Here (http://stackoverflow.com/questions/18852536/laravel-4-validation-is-broken), one reply states that you should not use both.
@thomassjogren you are totally right, thank you.
date uses strtotime
data_format uses date_parse_from_format
Can't be use both!
Please or to participate in this conversation.