Alexandre Benkendorf
Results
1
comments of
Alexandre Benkendorf
Tks! Works perfectly. If anyone uses moment.js: ``` $('.date_input') .datepicker({ language: 'pt', todayButton: new Date() }) .each(function() { if ($(this).val()) $(this) .data('datepicker') .selectDate(moment($(this).val(), 'DD/MM/YYYY').toDate()) }) ```