Hi guys,
I have been struggling with this problem for several hours now and can't find the reason for the error message...
I am reading a datetime string from a txt file, it returns this:
"01/31/2011 6:13 AM"
Now, I want to convert this string to datetime format. I don’t want to change the structure of the date... just want to convert in order to do some minutes and seconds calculations.
I have tried all kind of options:
Timespan
Datediff
Parse
ParseExact with format.... culture... globalization
Nothing seems to work!
Maybe I’m going crazy here....
I truly appreciate all your help.
Thanks.
I have been struggling with this problem for several hours now and can't find the reason for the error message...
I am reading a datetime string from a txt file, it returns this:
"01/31/2011 6:13 AM"
Now, I want to convert this string to datetime format. I don’t want to change the structure of the date... just want to convert in order to do some minutes and seconds calculations.
I have tried all kind of options:
Timespan
Datediff
Parse
ParseExact with format.... culture... globalization
Nothing seems to work!
Maybe I’m going crazy here....
I truly appreciate all your help.
Thanks.