はじめに
MaterializeのDatePickerでフォーマット指定する方法です。
簡潔にいうと、オプションで指定すれば良いだけです。
サンプル
$ ->
$('.datepicker').pickadate {
# Creates a dropdown to control month
selectMonths: true,
# Creates a dropdown of 15 years to control year,
selectYears: 15,
today: 'Today',
clear: 'Clear',
close: 'Ok',
# Close upon selecting a date,
closeOnSelect: false,
format: 'yyyy-mm-dd'
}