Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startDate option not working #29

Closed
varunachar opened this issue Oct 17, 2013 · 1 comment
Closed

startDate option not working #29

varunachar opened this issue Oct 17, 2013 · 1 comment

Comments

@varunachar
Copy link

The following code doesn't work. Everything else is functional, except that I can still select a date prior to the startDate option.

Unless I've misunderstood what the startDate option does, the following code should prohibit the user from selecting a date prior to the current date

$('.datetimepicker').datetimepicker({
    pickTime: false,
    startDate : new Date()
});

Thanks

@Eonasdan
Copy link
Owner

mmm. That looks right. Take a look a version 2, be sure you grab a copy of momentjs, starDate accepts javascript date objects, strings and moment date objects

Repository owner locked and limited conversation to collaborators Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants