Jarvis/static/js/template_users/datepicker_maxdate_today.js

6 lines
190 B
JavaScript

$(document).ready(function() {
var today = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
$('#id_date').data("DateTimePicker").maxDate(today);
});