IsDate problems

  • Thread starter Thread starter Andy Holliman
  • Start date Start date
A

Andy Holliman

Why does IsDate("01 02 03 12 2003") return true and CDate("01 02 03 12 2003") return "1 12 2003" ?

Thanks Andy
 
is date checks an object to c if it is a date (true or false)
cdate (convert to date) converts a string (object) to a date if possible

eric
Why does IsDate("01 02 03 12 2003") return true and CDate("01 02 03 12 2003") return "1 12 2003" ?

Thanks Andy
 
Sorry the quaestion wasn't clear - the problem is that the string "01 02 03 12 2003" doesn't look like a date so why is it parsed as if it is?

is date checks an object to c if it is a date (true or false)
cdate (convert to date) converts a string (object) to a date if possible

eric
Why does IsDate("01 02 03 12 2003") return true and CDate("01 02 03 12 2003") return "1 12 2003" ?

Thanks Andy
 
Back
Top