foundation-datepicker icon indicating copy to clipboard operation
foundation-datepicker copied to clipboard

Mark pass time like disabled.

Open m4a1fox opened this issue 9 years ago • 1 comments

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.

m4a1fox avatar Jan 19 '16 13:01 m4a1fox

Any updates on this?

whitebyte avatar Jun 29 '16 08:06 whitebyte