ppff
ppff

Reputation: 323

Bootstrap datepicker modify to take two dates

I would like to convert bootstrap datepicker for angular: https://github.com/angular-ui/bootstrap/blob/master/src/datepicker/datepicker.js

so that it will behave something like this: http://multidatespickr.sourceforge.net/

I am not completely new to angular, but could someone tell me how hard it will be to convert bootstrap datepicker to allow select two dates? OR change multidatepickr into Angular directive?

Upvotes: 1

Views: 1262

Answers (1)

Alex Johnson
Alex Johnson

Reputation: 1564

Check out dangrossman's Bootstrap-Daterangepicker. It's an extension on Bootstrap's date picker to select a date range between two selected dates.

In terms of converting the multidatepickr jquery-ui plugin that you linked, there's a number of tutorials online about how to convert jquery plugins to angular directives. You can read up on using this example or this related stackoverflow question

Upvotes: 2

Related Questions