bootstrap 5 datetimepicker not working properly [duplicate]

Solution 1:

The datetimepicker: https://cdnjs.cloudflare.com/ajax/libs/bootstrap- datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js is for Bootstrap 3, not Bootstrap 5.

Use an HTML5 date input instead...

<label for="startDate">Start</label>
<input id="startDate" class="form-control" type="date" />

https://codeply.com/p/zU0EWDmIfn