Platform :: ASP.NET
Editor :: VS 2013
I am trying to pass the value of RadDateTimePicker to a function as DateTime value in my code behind file. but it is showing error?
1. How to pass RadDateTimePicker as DateTime value?
2. how to validate the value of RadDateTimePicker is greater then the current system datetime value?
while trying to pass RadDateTimePicker as DateTime value,
//**************************************************
<telerik:RadDateTimePicker runat="server" ID="regDate" >
<Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true">
</Calendar>
</telerik:RadDateTimePicker>
// code behind logic
DateTime getRegDate = regDate;
//**************************************************
shows error ::
can not implicitly convert type 'Telerik.Web.UI.RadDateTimePicker' to 'System.Date.Time'