xxxxxxxxxx
1
<div class="d-flex align-items-center justify-content-center min-vh-100">
2
<div class="col-md-6">
3
<div class="form-outline" id="datetimepicker-timeOptions" data-mdb-input-init>
4
<input type="text" class="form-control" value="22/12/2020, 14:12:56" id="datetimepickerExample" />
5
<label for="datetimepickerExample" class="form-label">Select Date and Time</label>
6
</div>
7
</div>
8
</div>
9
1
1
xxxxxxxxxx
1
const pickerTimeOptions = document.querySelector('#datetimepicker-timeOptions');
2
new mdb.Datetimepicker(pickerTimeOptions, {
3
timepicker: { format24: true },
4
inline: true
5
});
Console errors: 0