Skip to content

Instantly share code, notes, and snippets.

@miahsuwork
Created January 10, 2020 03:23
Show Gist options
  • Save miahsuwork/f166857a78d8b3ac7ff10ce0c6156183 to your computer and use it in GitHub Desktop.
Save miahsuwork/f166857a78d8b3ac7ff10ce0c6156183 to your computer and use it in GitHub Desktop.
$('input[name="dates"]').daterangepicker({
"locale": {
"format": "YYYY年MM月DD日",
"separator": " - ",
"applyLabel": "確認",
"cancelLabel": "取消",
"customRangeLabel": "自訂義範圍",
"daysOfWeek": [
"日",
"一",
"二",
"三",
"四",
"五",
"日"
],
"monthNames": [
"1 月",
"2 月",
"3 月",
"4 月",
"5 月",
"6 月",
"7 月",
"8 月",
"9 月",
"10 月",
"11 月",
"12 月"
],
"firstDay": 1
},
"singleDatePicker": true,
"timePicker": true,
"timePicker24Hour": true,
"timePickerIncrement": 5,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment