CPK_2011
CPK_2011

Reputation: 1150

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?

Upvotes: 0

Views: 1385

Answers (1)

woodykiddy
woodykiddy

Reputation: 6455

<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"

Upvotes: 1

Related Questions