DateTime date = DateTime.ParseExact(dataGridView1.Rows[i].Cells[0].Value.ToString(), "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
如何仅从此代码中提取日期?
执行时显示此
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: String was not recognized as a valid DateTime.