I wrote a program that does work with files like delete and update, store, and search And all customers,But the problem I keep getting the following error when I do an update of the file
String was not recognized as a valid DateTime.
This error occurs in the Deserialize method:
public Order Deserialize(string str)
{
Order order = new Order();
var strOrder = str.Split(',');
order.Id = int.Parse(strOrder[0]);
**order.Date = DateTime.Parse(strOrder[1]);**
order.Price = int.Parse(strOrder[2]);
order.Description = strOrder[3];
order.CustomerId = int.Parse(strOrder[4]);
return order;
}
strOrder[1]?