jQuery bootstrap date range picker with months only view mode

RonyK picture RonyK · Apr 30, 2014 · Viewed 11.4k times · Source

I need a jQuery date range picker that combines the features of these following two great plug-ins. In bootstrap-daterangepicker I'm missing the ability to define only months view mode. And in bootstrap-datepicker I'm missing few things:

  • The ability to use only one input field to represent the range and show the selected range inside it (using the defined format and separator)
  • A validation that the "from" is earlier than the "to" (preferably disabling all earlier dates in the "to" calendar - like the first plug-in does).
  • Configuring predefined date ranges ranges (last year, last month, etc. ) - That's a nice to have :)

Can anyone recommend such a plug-in that has all these mentioned features? Or recommend the best way to add the missing features to one of them?

Answer

RonyK picture RonyK · May 21, 2014

I decided to extend 'bootstrap-daterangepicker' to support month view mode. I've posted a pull request, but you can find my version here.

https://github.com/rklachko/bootstrap-daterangepicker/tree/month-view