Nerian / bootstrap-datepicker-rails

A Datepicker for Twitter Bootstrap, integrated with Rails assets pipeline
MIT License
648 stars 182 forks source link

Start/End Dates fail to set with a year format #105

Closed Phillita closed 9 years ago

Phillita commented 9 years ago

Hello, I was trying to make a year picker using this but it turns out that if I change the output format of the date, it no longer is able to set the Start and End dates. Using any sort of formatted date seems to fail but using -30y and -1d as the start and end date seems to work.

screen shot 2015-08-11 at 9 23 47 am screen shot 2015-08-11 at 9 44 13 am

Nerian commented 9 years ago

Hi,

Not sure how to do this. You may want to ask in the actual project repo: https://github.com/eternicode/bootstrap-datepicker.

But wouldn't it be better to use rails' built in year picker?

Phillita commented 9 years ago

Good suggestion! I looked into the select_year and it works pretty well, it just doesn't have the nice interface. I should move this issue over to the other repo though.

Phillita commented 9 years ago

If anyone else is interested, I found an issue that is one in the same: https://github.com/eternicode/bootstrap-datepicker/issues/967