HI,
I have this string: “2010-12-27 23:05:36.0”. When I parse it with CDate like this: CDate(“2010-12-27 23:05:36.0”) it returns error 13.
When I remove the ‘.0’ from the string it is working fine.
The date string comes from a database where there is a mixture of dates formatted like this: ‘yyyy-mm-dd’ and ‘yyyy-mm-dd hh-MM-ss.n’ What would be the easy way to get rid of the error 13?
You could check the string length -> if it is >19, get rid of the rest and apply then the CDate function