I am carrying over a session variable from a raddatepicker on another page. How to I convert it from the string below to be the default value of the raddatepicker on the new page?
Error is "Date cannot be converted to Teleric.WebUI.RadDatePicker. Thank you.
Dim strPayDate As String = CType(Session.Item("PayDate"), String)
If Not Page.IsPostBack Then
'convert string to date
Dim dt As DateTime
dt = Convert.ToDateTime(strPayDate)
RadPayDate1 = dt
Error is "Date cannot be converted to Teleric.WebUI.RadDatePicker. Thank you.