• Stars
    star
    303
  • Rank 133,760 (Top 3 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Date range picker component for the modern web

Build Status Join the chat at https://gitter.im/sensortower/daterangepicker ghit.me Analytics

daterangepicker

Demo screenshot

Demo available here

Notable Features

  • Day / Week / Month / Quarter / Year calendar modes
  • Single calendar mode
  • Customazible & extendable
  • Integration with jQuery & Knockout

Dependencies

  • jquery
  • moment
  • knockout

Documentation

Documentation & Examples are available on our website.

Download

Latest Release

Install

bower install knockout-daterangepicker --save

Usage

With jQuery

$("input").daterangepicker({
  minDate: moment().subtract(2, 'years'),
  callback: function (startDate, endDate, period) {
    $(this).val(startDate.format('L') + ' – ' + endDate.format('L'));
  }
});

With Knockout.js

<input type="text" data-bind="daterangepicker: dateRange"/>
ko.applyBindings({
  dateRange: ko.observable([moment().subtract(1, 'month'), moment()])
});

Development

git clone [email protected]:sensortower/daterangepicker.git && cd daterangepicker
npm install && bower install
gulp serve

Copyright

Copyright © 2015 SensorTower Inc. See LICENSE for further details.

Join Us

We're hiring across the board on our technical teams. Contact us by emailing [email protected] or making an application - and mention that you saw this note here. Ask for our recruiter, Rumiko.

Here's more about us and our engineering culture: Key Values