Question

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.

Was it helpful?

Solution

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

            $('.future');.datetimepicker({
                pickTime: false,
                format: 'DD/MM/YYYY'
            });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top