jQuery datepicker dateFormat Script depends on jQuery and jQuery UI: jQuery(function($){ $('.datepicker').datepicker({ dateFormat: 'dd-mm-yy' }); });