Skip to content

Edward83528/bootstrap-datepicker-TW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

bootstrap-datepicker-tw v1.9.0

  • 增加對民國年的支援
  • 使用twy做為民國年的格式化字串, 如twy-mm-dd
  • 引入bootstrap-datepicker.js、bootstrap-datepicker.zh-TW.min.js,用法如下

中文民國年:

var startUpDatePicker = $("#startUpDate").datepicker({
	format: "twy-mm-dd",
	language: "zh-TW",
	showOnFocus: false,
	todayHighlight: true
}).on("show", function (e) {
	$("div.box").css({minHeight: "480px"});
}).on("hide", function (e) {
	$("div.box").css({minHeight: "auto"});
});

英文西元年:

var startUpDatePicker = $("#startUpDate").datepicker({
	format: "yyyy-mm-dd",
	language: "en",
	showOnFocus: false,
	todayHighlight: true
}).on("show", function (e) {
	$("div.box").css({minHeight: "480px"});
}).on("hide", function (e) {
	$("div.box").css({minHeight: "auto"});
});

Releases

No releases published

Packages

No packages published