tempusdominus / bootstrap-4

Tempus Dominus Bootstrap 4 Datetime Picker
https://getdatepicker.com/5-4/
MIT License
611 stars 239 forks source link

Disabling Time Picker Programmatically #389

Open alrollo opened 4 months ago

alrollo commented 4 months ago

Hi everyone,

I have a datetimepicker and a checkbox (all_day). The datetimepicker is initialized with the format: 'DD/MM/YYYY HH:mm', allowing the user to set both date and time. However, if the user checks the all_day checkbox, I need to change the format to 'DD/MM/YYYY' and disable the time selection. I've implemented this, but the control continues displaying the time picker. Is it possible to achieve this in the current version?

Thanks in advance. Best regards!