سؤال

I'm using the Bootstrap 3 DateTimePicker. When the user tabs into a field using this component, the current date and time is automatically entered. In some cases this is what I want. However, there are other times I want the component to completely ignore the time portion and not entered by default in a field. I can't seem to find a way to do this.

هل كانت مفيدة؟

المحلول

This will only display the date by default, try and see

            $('.future');.datetimepicker({
                pickTime: false,
                format: 'DD/MM/YYYY'
            });
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top