Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

today is disabled for {startDate: new Date()} #20

Closed
GoktugOzturk opened this issue Jan 10, 2016 · 1 comment
Closed

today is disabled for {startDate: new Date()} #20

GoktugOzturk opened this issue Jan 10, 2016 · 1 comment

Comments

@GoktugOzturk
Copy link
Contributor

When I use the code below, today should be active. but it is disabled:

<input type="text" data-toggle="datepicker" name="date" placeholder="Pick a date">
<script>
  $('[data-toggle="datepicker"]').datepicker({
    autohide: true, 
    startDate: new Date()
  });
</script>

if I use the code below today becomes active:

<input type="text" data-toggle="datepicker" name="date" placeholder="Pick a date">
<script>
  $('[data-toggle="datepicker"]').datepicker({
    autohide: true, 
    startDate: new Date().toDateString()
  });
</script>
@fengyuanchen
Copy link
Owner

I will fixed this soon. Thanks~

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