mysql 该字符串未被识别为有效的 datetime_打印报错,提示该字符串未被识别为有效的datetime...

版本号:

业务场景(如下):

cadb8ce5d0b587ce06508a3de7e7900f.png

预期效果(如下):

实际效果(如下)(包括错误,异常):

异常信息(异常类型:System.FormatException)

异常提示:格式不正确,导致的异常,请联系管理员处理

异常信息:该字符串未被识别为有效的 DateTime。

导致错误的应用程序或对象的名称:mscorlib

引发当前异常的方法:System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)

异常相关帮助:

堆栈信息:

在 System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

在 System.Convert.ToDateTime(String value)

在 Genersoft.Platform.Controls.Print.PrintControl.ConvertDsToPrint(DataSet ds, GspDataModel dm)

在 Genersoft.Platform.Controls.Print.PrintControl.GetReportClient(String formatData, DataSet dataSet, GspDataModel dm)

在 Genersoft.Platform.Controls.Print.PrintControl.PreView(String reportDefID, DataSet data, GspDataModel dataModel, GSPState state)

在 Genersoft.Platform.Controls.Print.PrintLists.button1_Click(Object sender, EventArgs e)

在 System.Windows.Forms.Control.OnClick(EventArgs e)

在 DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)

在 DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)

在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

在 System.Windows.Forms.Control.WndProc(Message& m)

在 DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

内部异常:{}

操作步骤(如下):

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值