McGansWebsite/assets/material-datetimepicker/datetimepicker.js

67 lines
1.4 KiB
JavaScript
Raw Normal View History

2023-01-05 12:19:39 +00:00
$(document).ready(function()
{
$('#date').bootstrapMaterialDatePicker
({
time: false,
clearButton: true
});
$('#date1').bootstrapMaterialDatePicker
({
time: false,
clearButton: true
});
$('#dateOfBirth').bootstrapMaterialDatePicker
({
time: false,
clearButton: true
});
$('#therapyDate').bootstrapMaterialDatePicker
({
time: false,
clearButton: true
});
$('#time').bootstrapMaterialDatePicker
({
date: false,
shortTime: false,
format: 'HH:mm'
});
$('#time2').bootstrapMaterialDatePicker
({
date: false,
shortTime: false,
format: 'HH:mm'
});
$('#date-format').bootstrapMaterialDatePicker
({
format: 'dddd DD MMMM YYYY - HH:mm'
});
$('#date-fr').bootstrapMaterialDatePicker
({
format: 'DD/MM/YYYY HH:mm',
lang: 'fr',
weekStart: 1,
cancelText : 'ANNULER',
nowButton : true,
switchOnClick : true
});
$('#date-end').bootstrapMaterialDatePicker
({
weekStart: 0, format: 'DD/MM/YYYY HH:mm'
});
$('#date-start').bootstrapMaterialDatePicker
({
weekStart: 0, format: 'DD/MM/YYYY HH:mm', shortTime : true
}).on('change', function(e, date)
{
$('#date-end').bootstrapMaterialDatePicker('setMinDate', date);
});
$('#min-date').bootstrapMaterialDatePicker({ format : 'DD/MM/YYYY HH:mm', minDate : new Date() });
});