Thursday, April 13, 2017

Bootstrap Validation Date range

Hello i have a problem with a bootstrap validation Date range. I date format when i select in the calendar is diplay like dd/mm/yyyy

Every test between the min and max date don't work . It's seems that it don't allow an input date. someone now how to resolve the problem ? thanks a lot in advance

 dt_naissance: {
                    validators: {
                        date: {
                            message: 'La date n\'est pas valide',
                            format: 'dd/mm/yyyy',
                            // min and max options can be strings or Date objects
                            min: '01/01/1950',
                            max: '01/01/2013'
                        }
                    }
                },

and i have a field

 {!! Form::date('dt_naissance', null, ['class' => 'form-control', 'placeholder' => 'Date de naissance']) !!}



via Mathieu Mourareau

Advertisement