Form with datetimepicker

2

I'm developing a scheduling system and I'm using datetimepicker to dial the hours. I need a help with json; I need to block the dates that are being used so they can not be selected. The project is updated in github.

Thanks in advance!

GitHub Project

    
asked by anonymous 19.03.2016 / 07:47

1 answer

1

use the function:

disabledDates   []  

Disbale all dates in list

{disabledDates: ['01.01.2014','02.01.2014','03.01.2014','04.01.2014','05.01.2014','06.01.2014'], formatDate:'d.m.Y'}

It's own datetimepicker , it's in the documentation, with it you block the days you want. does a query to know which dates can not be used, saved in an array and thus put in the options of datapicker :

disabledDates: arrayComDatas
    
18.10.2016 / 14:01