1
votes

It seems to insist on making you choose a time also. I went through the read me several times and I'm not seeing how to only do a date.

https://github.com/dalelotts/angular-bootstrap-datetimepicker

1
You need to add the directive mentioned here, to format the date-time. github.com/dalelotts/…Prerak Sola

1 Answers

3
votes

You need to set minView to day in the config datetimepicker-config="{'minView':'day'}". It restricts selection till that level. So, by making it day, we won't let it select further days. Like this:

<datetimepicker ng-model="date" datetimepicker-config="{'minView':'day'}" />

That should do it!