G
Guest
I am trying to validate a textfield to ensure it holds a time. I use a
try/catch block to see if I can convert to a time & if it works then I
blindly 'assume' it was OK.
This single line
Dim y As Date = CType("00:0z", Date)
gives me a time of 1:00 am, whereas
Dim z As Date = Date.Parse("00:0z")
gives me the same time but with today's date
Is this a bug or a feature of the framework ? Does anyone have a better idea
?
try/catch block to see if I can convert to a time & if it works then I
blindly 'assume' it was OK.
This single line
Dim y As Date = CType("00:0z", Date)
gives me a time of 1:00 am, whereas
Dim z As Date = Date.Parse("00:0z")
gives me the same time but with today's date
Is this a bug or a feature of the framework ? Does anyone have a better idea
?