Skip to content
This repository was archived by the owner on Dec 15, 2017. It is now read-only.

Add disableDates option#142

Open
jeffreycahyono wants to merge 2 commits into
tarruda:masterfrom
jeffreycahyono:disableDates
Open

Add disableDates option#142
jeffreycahyono wants to merge 2 commits into
tarruda:masterfrom
jeffreycahyono:disableDates

Conversation

@jeffreycahyono

Copy link
Copy Markdown

Add disableDates option to prevent user choosing blacklisted dates. Usage example below.

$('#dtp').datetimepicker({
    disableDates : [
        new Date(2013,5-1,30),// Corpus Christi
        new Date(2013,6-1,6), // Isra Miraj
        new Date(2013,7-1,4) // Independence Day
    ] //blockDts
});

The array can also contain date primitive value

$('#dtp').datetimepicker({
    disableDates : [1364490000000, 1368032400000, 1369414800000, 1370451600000, 1375894800000, 1375981200000, 1376672400000, 1381770000000, 1383584400000, 1387904400000]
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant