Hello

Mon conseil pour ce qu'il vaut.

Dans ton Layout tu mets ton JS

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