6.1.2.3.1.4 CDate / CVDate

Function Declaration

 Function CDate(Expression As Variant) As Date 
 Function CVDate(Expression As Variant)As Variant 

Parameter

Description

Expression

Any data value (section 2.1).

 

Runtime Semantics.

§ If the value of Expression is an Error (section 2.1) data value then raise error 13, "Type mismatch".

§ If the value of Expression is not an Error data value return the Date data value that is the result of Expression being Let-coerced to Date (section 5.5.1.2.3).

§ CDate MAY recognizes string date formats according to implementation defined locale settings.

§ CVDate is identical to CDate except for the declared type of its return value.