If you still need to use momentjs, you can load this plugin to use moment to parse input dates.


//example picker
//note that you can optionally provide the format to use.
tempusDominus.extend(tempusDominus.plugins.moment_parse, 'DD.MM.yyyy hh:mm a');
const datetimepicker1 = new tempusDominus.TempusDominus(document.getElementById('datetimepicker1'));

    
Plugins - Moment 02/05/2022 02/05/2022 How to use momentjs plugin with Tempus Dominus. datepicker, javascript, open source, tempus dominus, eonasdan