Enable time in datapicker

0

I am using the boostrap-material-datetimepicker.js which as a result follows below:

The only problem is that when I change the line below:

minDate: moment().endOf('day')

It also disables the schedule according to figure 2, however when I put:

minDate: null

I can select the times, but in compensation, the previous dates are also disabled.

How do I enable schedules, but keep previous dates disabled?

    
asked by anonymous 03.06.2018 / 03:33

1 answer

0

So I understand you plan to make available the days and times from the day, hours and minutes right now, right?

If so, just use:

moment().milliseconds(0);

Using moment().endOf('day') returns the current date 23:59:59

    
03.06.2018 / 05:57