私はこれがすでに非常に多くの種類の類似点を持っていることを知っています. しかし、日付を別の日付に変換するたびに混乱します。String was not recognized as a valid DateTime.
常に表示されるメッセージ。
私はこのコードのいくつかを試しました:
Dim EffectiveDate As DateTime
EffectiveDate = DateTime.ParseExact("05/08/2012", "MM/dd/yyyy", Nothing)
EffectiveDate = DateTime.ParseExact("5/8/2012", "MM/dd/yyyy", Nothing)
EffectiveDate = DateTime.ParseExact("1/10/2012", "MM/dd/yyyy", Nothing)
EffectiveDate = DateTime.ParseExact("10/1/2012", "MM/dd/yyyy", Nothing)
//It resulted in got the message above
EffectiveDate = DateTime.ParseExact("10/10/2012", "MM/dd/yyyy", Nothing)
//It has no problem
コードの何が問題になっていますか?? どうもありがとうございました。