Topic: Datetimepicker comma between date and time
Is there any simple way to remove the comma from the date time? Both in the display and when I submit the form there is a comma. IE: 12/1/2023,03:30 PM.
Here's my code where I'm setting the date format:
document.querySelectorAll('[data-mdb-datetimepicker-init]').forEach(dtTimePicker => {
const options = {
datepicker: { format: 'm/d/yyyy' }
};
const myDatetimepicker = new mdb.Datetimepicker(dtTimePicker);
myDatetimepicker.update(options);
});
Kamila Pieńkowska staff answered 11 months ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.1.0
- Device: PC
- Browser: Firefox
- OS: Windows 11
- Provided sample code: No
- Provided link: No