Shima
Shima

Reputation: 19

How to set time in RadDateInput in asp.net?

How to set time in RadDateInput in asp.net?

I want set time in this controls in programming.

I use this code but it is incorrect.

RadInputeData.Text = "12:35";

Upvotes: 0

Views: 164

Answers (1)

mshoaiblibra
mshoaiblibra

Reputation: 390

Use this approach:

In HTML:

<telerik:RadDateInput ID="RadInputeData" runat="server" DisplayDateFormat="HH:mm" Width="125" />

In Code:

RadInputeData.SelectedDate = DateTime.Parse("12:35");

Upvotes: 1

Related Questions