Form with datetimepicker

Asked

Viewed 175 times

2

I am developing a scheduling system and I am using the datetimepicker to make the appointment. I need a help with json; I need to block the dates that are being used so that they cannot be selected. The project is updated on github.

From now on, thank you!

Project at Github

  • 1

    Welcome to the SOPT, I advise first of all to tour the site http://answall.com/tour

  • See also http://answall.com/help/mcve. You have to be very willing to analyze whole the project to suggest some kind of solution. Related: http://stackoverflow.com/questions/29400977/xdsoft-datetimepicker-disable-sundays

  • Thanks a lot. I’ll make it simple.

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'}

She’s from the same datetimepicker, It’s in the documentation, with it you block the days you want. makes a query to know which dates cannot be used, saved in an array and thus put in the options of the datapicker:

disabledDates: arrayComDatas

Browser other questions tagged

You are not signed in. Login or sign up in order to post.