3
Answers

date n time picker value from database

ta mu

ta mu

10y
910
1
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

Answers (3)