string - VB6: CDate(some date) returns runtime error 13 -
hi,
i have string: "2010-12-27 23:05:36.0". when parse cdate this: cdate("2010-12-27 23:05:36.0") returns error 13. when remove '.0' string working fine.
the date string comes database there mixture of dates formatted this: 'yyyy-mm-dd' , 'yyyy-mm-dd hh-mm-ss.n' easy way rid of error 13?
you check string length -> if >19, rid of rest , apply cdate function
Comments
Post a Comment