Topic: Datetimepicker comma between date and time
Dust premium asked 10 months ago
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);
});
Add comment
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Premium
- 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