如何更改日期选择器格式 [英] How to change the Datepicker Format

查看:63
本文介绍了如何更改日期选择器格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在jsquery中使用datepicker,如果我选择显示月份/日期/年份的日期.


但是我需要显示日期/月/年格式.如果可以的话,可以在相同的日期选择器中更改格式.


在此先感谢< big></big>

Hi all ,

Am using datepicker in jsquery, if i select the date it shows month/date/year.


But i need to show date/month/year format.it is possible to change the format in the same datepicker,if it is mean How can i change in javascript ,



Thanks in advance<big></big>

推荐答案

如果您自己亲自研究了代码,这样做应该会更简单,工作量更少,而不是在此处发布此问题.
This should have been much simpler and less efforts in getting this done, if you had looked into the code yourself, rather than posting this question here.


priya,

http://ask.metafilter.com/117216/How- do-I-change-date-format-in-JQuery-Datepicker [
Hi priya,

http://ask.metafilter.com/117216/How-do-I-change-date-format-in-JQuery-Datepicker[^]

this link may help


在javascript中,没有用于格式化日期的内置函数.您需要手动操作.
例如:var dt ="01/05/2009"
var arrDt = dt.split(''/'')
alert(arrDt [1] +"/" + arrDt [0] +"/" + arrDt [2])
In javascript there is no build in function for format the date. You need to do it mannualy.
Eg: var dt= "01/05/2009"
var arrDt = dt.split(''/'')
alert(arrDt[1] + "/" + arrDt[0] + "/" + arrDt[2])


这篇关于如何更改日期选择器格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆