IsDate(“ISomeTimesHateProgrammingMarch2005”)= True [英] IsDate("ISomeTimesHateProgrammingMarch2005") = True
本文介绍了IsDate(“ISomeTimesHateProgrammingMarch2005”)= True的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么这会返回true:
IsDate(ISometimesHateProgrammingMarch2005)
还有另一种方法来验证这不是约会?
提前致谢!
MDC
解决方案
在这里按预期工作...
-
" MDC" < MI ************* @ gmail.com> écritdansle message de
news:11 ********************** @ z14g2000cwz.googlegr oups.com ...... < blockquote class =post_quotes>为什么返回true:
IsDate(ISometimesHateProgrammingMarch2005)
还有另一种方法可以验证这不是日期吗?
提前致谢!
MDC
MDC,
我怀疑IsDate正在使用DateTime.Parse,它也说你的
示例输入是一个日期。
另一种选择是使用DateTime.ParseExact。
Kerry Moorman
" MDC"写道:
为什么这会返回true:
IsDate(ISometimesHateProgrammingMarch2005)
还有另一种方法来验证这不是约会?
提前致谢!
MDC
Patrice写道:按预期工作...
真的吗?它返回FALSE?你使用什么框架?我正在使用
v1.1.4322(VS .NET 2003)。
谢谢。
MDC
Why does this return true:
IsDate("ISometimesHateProgrammingMarch2005")
Is there another way to verify that this is not a date??
Thanks in advance!
MDC
解决方案
Works as expected here...
--
"MDC" <mi*************@gmail.com> a écrit dans le message de
news:11**********************@z14g2000cwz.googlegr oups.com...Why does this return true:
IsDate("ISometimesHateProgrammingMarch2005")
Is there another way to verify that this is not a date??
Thanks in advance!
MDC
MDC,
I suspect that IsDate is using DateTime.Parse, which also says that your
example input is a date.
Another option is to use DateTime.ParseExact.
Kerry Moorman
"MDC" wrote:
Why does this return true:
IsDate("ISometimesHateProgrammingMarch2005")
Is there another way to verify that this is not a date??
Thanks in advance!
MDC
Patrice wrote:Works as expected here...
Really? It returns FALSE? What framework are you using? I am using
v1.1.4322 (VS .NET 2003).
Thanks.
MDC
这篇关于IsDate(“ISomeTimesHateProgrammingMarch2005”)= True的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文