date n time picker value from database
i have a date n time pickr on form i want it take its value from database, rd is data reader eg
up.textBox15.Text = rd["No_of_installments"].ToString(); this line is ok
up.dateTimePicker1.Value = DateTime( rd["date"]); error
'System.DateTime' is a 'type' but is used like a 'variable.
here i
try to cast it. whats correct method