ab-datepicker icon indicating copy to clipboard operation
ab-datepicker copied to clipboard

how to current date use for min date

Open khushmohammad opened this issue 6 years ago • 1 comments
trafficstars

how to current date use for min date

khushmohammad avatar Nov 11 '19 04:11 khushmohammad

//i use like this .can you modify library today date var today = new Date(); var dd = today.getDate(); var mm = today.getMonth() + 1; var yyyy = today.getFullYear(); if (dd < 10) { dd = '0' + dd; } if (mm < 10) { mm = '0' + mm; } var today = dd + '/' + mm + '/' + yyyy;
/// function datepicker(id){

$('#'+id).datepicker({ gainFocusOnConstruction: false, markup: 'bootstrap4', outputFormat: 'dd/MM/yyyy', max: today, }); }

khushmohammad avatar Nov 11 '19 05:11 khushmohammad