(function($) {
    $(document).ready(function() {
        $('.datepicker').datepicker();
    });
})(jQuery);

(function($) {
    $(document).ready(function() {
        $('.datepicker').datepicker({
            dateFormat: 'yy-mm-dd'
                                    });
    });
})(jQuery);

Use correct date format for datepicker
Use correct date format for datepicker
