1
Answer

Error when retrieving Date type

To Be

To Be

8y
380
1
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)