有没有办法将aldeed/meteor-autoform-bs-datepicker
的格式更改为dd/mm/yyyy
.我已经尝试了下面的代码,但它不起作用。
date: {
type: Date,
optional: true,
autoform: {
type: "bootstrap-datepicker",
datePickerOptions:
{
format: "dd/mm/yyyy"
}
}
}
格式
d/mm/yyyy
会回来
22/12/2015
或者,格式
D/mm/yyyy
会回来
Saturday/12/2015
检查这个:https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx