To Be

To Be

  • NA
  • 10
  • 2.4k

Error when retrieving Date type

Mar 3 2016 6:40 AM
Hi ,
 
I have one application return Customer details .
I can view all customers details except one customer it will gives me always this error "there is no row at position 0" 
 
 
code :
 
txtOrderDate.Text = System.DBNull.Value.ToString 
 
txtOrderDate.Text = Convert.ToDateTime(MyDs.Tables("OO").Rows(0)("OrderDate")).ToString("dd / MM / yyyy") .
 
I checked all Orderdate in the Database it's all same format but i don't know why it's happening
 for this customer only !!! 

Answers (1)