Dates are times are the same thing (i.e. Dates always have a time, but that time might be midnight). A time is represented by the number of milliseconds since Jan 1, 1970. You can observe this by calling
So, to disable times write a
before-render callback, determine the
$view you want to effect (probably
minute) , then in the callback iterate over the dates and set
date.selectable = false; on times that you would like to disable.
If you would like additional help you can hire me through CodeMentor (https://www.codementor.io/dalelotts) and we can work together to implement the code.
Use the angular-date-time-input directive to format the display of a date in an input box or allow users to enter a valid date with the keyboard.
if you don't want user input via keyboard, don't use an input box.
configureOn- https://github.com/dalelotts/angularjs-bootstrap-datetimepicker#configureon - just change the configuration when the startView should change, raise an event to cause the picker to re-read it's configuration and it should work as you expect