从字符串“Thu Jul 21 00:00:00 UTC + 0100 200”转换而来键入'Date'无效(System.InvalidCastException) [英] Cast from string "Thu Jul 21 00:00:00 UTC+0100 200" to type 'Date'is not valid(System.InvalidCastException)

查看:206
本文介绍了从字符串“Thu Jul 21 00:00:00 UTC + 0100 200”转换而来键入'Date'无效(System.InvalidCastException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试将字符串(Thu Jul 21 00:00:00 UTC + 0100 200)转换为

date。我收到以下错误


来自字符串Thu Jul 21 00:00:00 UTC + 0100 200键入''日期''是

无效(System.InvalidCastException)


任何有关此的帮助将不胜感激


谢谢

Kiran

Hi,

I am trying to convert a string(Thu Jul 21 00:00:00 UTC+0100 200) to
date. I get the following error

Cast from string "Thu Jul 21 00:00:00 UTC+0100 200" to type ''Date'' is
not valid(System.InvalidCastException)

Any help on this will be appreciated

Thanks
Kiran

推荐答案

Kiran,

是字符串格式Thu Jul 21 00:00:00 UTC + 0100 200您的

文化和日历中的有效日期?


Cor
Kiran,

Is the string format "Thu Jul 21 00:00:00 UTC+0100 200" a valid date in your
culture and calendersettings?

Cor


Cor Ligthert [MVP]写道:
Cor Ligthert [MVP] wrote:
Kiran,

是字符串格式Thu Jul 21 00:00:00 UTC + 0100 200您的
文化和日历中的有效日期?

Cor
Kiran,

Is the string format "Thu Jul 21 00:00:00 UTC+0100 200" a valid date in your
culture and calendersettings?

Cor



嗨Cor,


是的,它是一个有效的日期,我从javascript获得价值和

这是我从客户端获得的价值。


" Thu 7月21日00:00:00 UTC + 0100 2005"


谢谢

Kiran


Hi Cor,

yes it is a valid date and I am getting the value from javascript and
this is the value I get from clientside.

"Thu Jul 21 00:00:00 UTC+0100 2005"

Thanks
Kiran


Kiran ,
Kiran,
是的,它是一个有效的日期,我从javascript获得价值,这是我从客户端获得的价值。

" ; Thu Jul 21 00:00:00 UTC + 0100 2005"
yes it is a valid date and I am getting the value from javascript and this
is the value I get from clientside.

"Thu Jul 21 00:00:00 UTC+0100 2005"



你能说出它的文化吗?


否则它是无法模拟它。


Cor



Can you tell what culture this is in?

Otherwise it is impossible to simulate it.

Cor



这篇关于从字符串“Thu Jul 21 00:00:00 UTC + 0100 200”转换而来键入'Date'无效(System.InvalidCastException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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