ta mu

ta mu

  • NA
  • 201
  • 80.7k

date n time picker value from database

Sep 8 2013 6:38 AM
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)