Skip to content

Instantly share code, notes, and snippets.

@dangrossman
Created July 15, 2015 23:04
Show Gist options
  • Save dangrossman/90b0b82275c81ac5904a to your computer and use it in GitHub Desktop.
Save dangrossman/90b0b82275c81ac5904a to your computer and use it in GitHub Desktop.
drp2.js
$('input[name="daterange"]').daterangepicker(
{
locale: {
format: 'YYYY-MM-DD'
},
startDate: '2013-01-01',
endDate: '2013-12-31'
},
function(start, end, label) {
alert("A new date range was chosen: " + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment