使用ajax日历并保存为01/01/2013 [英] using ajax calender and save as 01/01/2013

查看:51
本文介绍了使用ajax日历并保存为01/01/2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ajax日历并在文本框中存储日期。它以8/8/2013(m / d / yyyy)的格式存储,但我希望格式为08/08/2013(mm / dd / yyyy)





提前感谢

解决方案

请尝试以下代码作为样本



 <   asp:TextBox     ID   =  TextBox1    runat   =  server >  <  < span class =code-leadattribute> / asp:TextBox  >  
< cc1:CalendarExtender ID = CalendarExtender1 runat = 服务器 TargetControlID = TextBox1 格式 = dd / MM / yyyy >
< / cc1:CalendarExtender >


i am using ajax calender and storing date in textbox. it is getting stored in the format 8/8/2013 (m/d/yyyy) but i want the format as 08/08/2013 (mm/dd/yyyy)


thanks in advance

解决方案

Please try below code as a sample

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" Format="dd/MM/yyyy">
    </cc1:CalendarExtender>


这篇关于使用ajax日历并保存为01/01/2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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