Skip to content

Instantly share code, notes, and snippets.

@corean
Last active April 14, 2017 06:02
Show Gist options
  • Save corean/96e41b1ef334ba227c885efe93b39d8b to your computer and use it in GitHub Desktop.
Save corean/96e41b1ef334ba227c885efe93b39d8b to your computer and use it in GitHub Desktop.
날짜관련 daterange picker (jquery)
$('input[name="daterange"]').daterangepicker({
locale: {
format: 'YYYY-MM-DD',
"separator": " ~ ",
"daysOfWeek": ["일","월","화","수","목","금","토"],
"monthNames": ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]
},
startDate: '{{ \Carbon\Carbon::now()->subMonths(1)->toDateString() }}',
endDate: '{{ \Carbon\Carbon::now()->toDateString() }}'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment