System.FormatException:字符串未被识别为有效的DateTime.或字符串未被识别为有效的DateTime. [英] System.FormatException: String was not recognized as a valid DateTime. or String was not recognized as a valid DateTime.

查看:99
本文介绍了System.FormatException:字符串未被识别为有效的DateTime.或字符串未被识别为有效的DateTime.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我第一次运行应用程序时,我遇到错误时遇到朋友"System.FormatException:字符串未被识别为有效的DateTime""
之后,我第二次运行了,没有错误
该问题每1次发生一次. plz help

hi friends when i run my application first time i have error occur ''System.FormatException: String was not recognized as a valid DateTime"''
after that i ran second time there is no error
the problem occur every 1st time. plz help

推荐答案

好像没有初始化日期字符串变量.添加有效的初始化,该错误可能会消失.
Looks like you have not initialized your date string variable. Add a valid initialization, and the error may disappear.


这篇关于System.FormatException:字符串未被识别为有效的DateTime.或字符串未被识别为有效的DateTime.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆