Skip to content

Instantly share code, notes, and snippets.

@gholadr
Last active December 5, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gholadr/171e9483b77e1f33d3958cbf8b98ed73 to your computer and use it in GitHub Desktop.
Save gholadr/171e9483b77e1f33d3958cbf8b98ed73 to your computer and use it in GitHub Desktop.
french version
$('#demo').daterangepicker({
"locale": {
"format": "MM/DD/YYYY",
"separator": " - ",
"applyLabel": "Appliquer",
"cancelLabel": "Annuler",
"fromLabel": "De",
"toLabel": "A",
"customRangeLabel": "Période personnalisée",
"weekLabel": "S",
"daysOfWeek": [
"Di",
"Lu",
"Ma",
"Me",
"Je",
"Ve",
"Sa"
],
"monthNames": [
"Janvier",
"Fevrier",
"Mars",
"Avril",
"Mai",
"Juin",
"Juillet",
"Aout",
"Septembre",
"Octobre",
"Novembre",
"Decembre"
],
"firstDay": 1
},
"startDate": "11/28/2018",
"endDate": "12/04/2018"
}, function(start, end, label) {
console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment