从字符串“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)
问题描述
我正在尝试将字符串(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屋!