foundation-datepicker
foundation-datepicker copied to clipboard
Mark pass time like disabled.
Hi there! Nice plugin. I have a question. I've use this plugin for users, they can create an event. I've set the code like this var nowTemp = new Date(); var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
$('#date-start').fdatepicker({
format: 'mm-dd-yyyy hh:ii',
disableDblClickSelection: true,
pickTime: true,
onRender: function (date) {
console.log(date);
return date.valueOf() < now.valueOf() ? 'disabled' : '';
}
});
Now I can select only current day and future day. It's works perfect. But. It seems that I can select current day, and the pass time of this day. How this can be fixed? Thanks.
Any updates on this?