문제

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