S
Scott H
I've converted string representations of Dates into DATE types alot
before in Windows Apps, I'm just doing the same now in a Web App, I'm
fairly new to ASP.NET, but the error does not make sense at all:
System.InvalidCastException: Cast from string "14:13:00 21/03/2005" to
type 'Date' is not valid.
To which I reply "yes it #!$%#% is!!"
Now, I've seen it before where you try to convert an empty string to a
date, and of course the poor thing can't convert it, but the above
looks like a date to me...I'm in the UK so 21 is the day not the
month. Maybe this is what its refering to, I have the regional
settings, set to UK style dates, so it should be able to interpret it.
So, whats happening here?
Scott
before in Windows Apps, I'm just doing the same now in a Web App, I'm
fairly new to ASP.NET, but the error does not make sense at all:
System.InvalidCastException: Cast from string "14:13:00 21/03/2005" to
type 'Date' is not valid.
To which I reply "yes it #!$%#% is!!"
Now, I've seen it before where you try to convert an empty string to a
date, and of course the poor thing can't convert it, but the above
looks like a date to me...I'm in the UK so 21 is the day not the
month. Maybe this is what its refering to, I have the regional
settings, set to UK style dates, so it should be able to interpret it.
So, whats happening here?
Scott