带日期和时间的日历控件?

时间:2014-02-10 07:37:36

标签: asp.net

可以在asp.net中的Ajax日历控件中显示时间吗?我有一个text-box填充日历控件,但我想显示日历控件应显示日期和时间。任何人都可以建议我吗?

2 个答案:

答案 0 :(得分:1)

您可以使用两个日历控件 - 一个用于日期,另一个用于时间。

enter image description here

Source

您可以使用第三方控件 - Check it Out

Check this too。!!

答案 1 :(得分:0)

您可以使用Date and time picker

<ASP:TextBox runat="server" ID="txtDate"></ASP:TextBox>

<obout:Calendar runat="server"
                         ShowTimeSelector="true" 
                         DateFormat="MM/dd/yyyy hh:mm:ss"
                         DatePickerMode="true"
                         TextBoxId="txtDate">
</obout:Calendar>    

ASP.NET Calendar - Date and time picker