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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -