Skip to content

Instantly share code, notes, and snippets.

@dangrossman
Last active August 29, 2015 14:16
Show Gist options
  • Save dangrossman/0c6c911fea1459b5fd13 to your computer and use it in GitHub Desktop.
Save dangrossman/0c6c911fea1459b5fd13 to your computer and use it in GitHub Desktop.
$('#daterange').daterangepicker();
$('#daterange').on('apply.daterangepicker', function(ev, picker) {
console.log(picker.startDate.format('YYYY-MM-DD'));
console.log(picker.endDate.format('YYYY-MM-DD'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment