Skip to content

Instantly share code, notes, and snippets.

@calpo
Created November 9, 2011 03:39
Show Gist options
  • Save calpo/1350268 to your computer and use it in GitHub Desktop.
Save calpo/1350268 to your computer and use it in GitHub Desktop.
jQuery UI Datepickerの曜日等デフォルト設定
;(function($){
/**
* datepicker デフォルト設定
*/
$.datepicker.setDefaults({
dateFormat: 'yymmdd',
dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
dayNamesShort: ['日曜','月曜','火曜','水曜','木曜','金曜','土曜'],
dayNamesMin: ['日','月','火','水','木','金','土'],
monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12']
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment