This is the error. sam code parse same value in my other project, but not working in current project 异常类型“System.FormatException”出现在mscorlib.dll 附加信息:字符串未被承认的Valide日期时间日期时间解析错误
DateTime temp = DateTime.ParseExact(dataGridView1.Rows[i].Cells["Date/Time"].Value.ToString(), "dd/MM/yyyy HH:mm", null);
DateTime tempnext = DateTime.ParseExact(dataGridView1.Rows[i + 1].Cells["Date/Time"].Value.ToString(), "dd/MM/yyyy HH:mm", null);
发布代码,你得到一个错误 – CaptainHere
人们几乎看不到任何这些小图像。使用调试器来检查抛出异常时要解析的任何值。 –
@CaptainMagikarp你去那里......再检查一遍 –