Asp.net中的日期和时间控件 [英] Date and Time Controls in Asp.net

查看:1033
本文介绍了Asp.net中的日期和时间控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





有没有人可以解释如何在asp.net 4.5中使用日期和时间控件,我们可以在文本框中选择日期和时间?



谢谢

解决方案

www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx

日历扩展器 - 只需添加到您的文本框


您可以查看这个..

DateTimePicker-control-for-ASPNet-TextBox-Example.aspx [ ^ ]


< pre lang =cs> DateTime.Now.ToString();
DateTime.Now.ToShortDateString();
DateTime.Now.ToLongDateString();
DateTime.Now.ToShortTimeString() ;
DateTime.Now.ToLongTimeString();


Hi,

Could anybody please explain with an example how to use date and time controls in asp.net 4.5 where we can choose date and time in textboxes ?

Thank You

解决方案

www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx"
Calender extender-Just add to your text box


You can check this..
DateTimePicker-control-for-ASPNet-TextBox-Example.aspx[^]


DateTime.Now.ToString();
DateTime.Now.ToShortDateString();
DateTime.Now.ToLongDateString();
DateTime.Now.ToShortTimeString();
DateTime.Now.ToLongTimeString();


这篇关于Asp.net中的日期和时间控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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