CPK_2011 CPK_2011 - 3 days ago 6
ASP.NET (C#) Question

Telerik RadDateTimePicker to display Time along with Date in Date control

I have the following code

<telerik:RadDateTimePicker ID="dtpDate" runat="server" EnableTyping="false"></telerik:RadDateTimePicker>


Date is coming properly but time is not visible in the date control. How to resolve this?

Answer
<telerik:RadDateTimePicker ID="dtpDate" runat="server" EnableTyping="false">
<TimeView Interval="00:15:00"></TimeView>
</telerik:RadDateTimePicker>

You can try adding the TimeView tag within the RadDateTimePicker and that should give you the time part.

More explanations can be found in here.

Update: To see the time part in the input textbox, you can specify the date time format string in the mark up, e.g.

DateInput-DateFormat="dd/mm/yyyy hh:mm:ss"
Comments