I get the following error when i try to convert to date time.
String was not recognized as a valid DateTime.
cost.b_date =
Try using DateTime.ParseExact.
DateTime date = DateTime.ParseExact(c_date.Text, "yyyy/MM/dd", null);