[英]how do I change format of Date using javascript?
I want to display date as 18-03-2016 using javascript datepicker.If I didnot mention any format it is displaying as 03-18-2016.How to display like 18-03-2016.我想使用 javascript datepicker 将日期显示为 18-03-2016。如果我没有提到任何格式,它显示为 03-18-2016。如何像 18-03-2016 一样显示。 this is sample code
这是示例代码
Try this尝试这个
new JsDatePick({
useMode:2,
target:"startdate",
dateFormat:"%d-%m-%Y"
});
As described here: enter link description here如此处所述:在此处输入链接描述
you can add this你可以添加这个
new JsDatePick({
useMode:2,
target:"startdate",
dateFormat:"%Y-%m-%d"
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.