Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Datetimepicker comma between date and time

Dust priority asked 1 year 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);
    });

Kamila Pieńkowska staff answered 1 year ago


We currently do not have the option to change or remove coma from the picker.



Please insert min. 20 characters.

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: Priority
  • 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