帮我更改日期格式 [英] Help me to change the Date format
本文介绍了帮我更改日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
am using the date picker, it displays the date in month/day/year format. but i need to display in day/month/year format,Help me
<script type="text/javascript" language="javascript">
$(function () {
$('#ctl00_MainContentPlaceHolder_dateofbirth').datepick({ showOnFocus: false, showTrigger: '#Img1' });
});
</script>
<input type="text" id="dateofbirth" name="dateofbirth" maxlength="25" runat="server" />
<img id="Img1" src="CSS/new/images/calendar.gif" />
推荐答案
(function(){
(function () {
('#ctl00_MainContentPlaceHolder_dateofbirth').datepick({showOnFocus:false,showTrigger:'#Img1'}); }); < /script > < 输入 =" 文本" id 出生日期" 名称 =" 出生日期" 最大长度 25" runat =" / >> ; < img =" Img1" src CSS/new /images/calendar.gif" / >
('#ctl00_MainContentPlaceHolder_dateofbirth').datepick({ showOnFocus: false, showTrigger: '#Img1' }); }); </script> <input type="text" id="dateofbirth" name="dateofbirth" maxlength="25" runat="server" /> <img id="Img1" src="CSS/new/images/calendar.gif" />
你好,
通过查看您的脚本,我无法分辨,因为这取决于您使用的日期选择器.尝试使用以下方式
Hello,
By looking at you script i cant tell becouse it depends on whcih datepicker you are using.try to use following way
这篇关于帮我更改日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文