Home > lang > cdate 
 en fr de es it nl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
CDate
Date = CDate ( Expression AS Variant ) AS Date

Converts an expression (numerical Float or String) into a Date / Time String.

Be careful! The current localization is not used by this function.

Errors

MessageDescription
Type mismatch (6) Expression cannot be converted.

Example

PRINT CDate("09/06/1972 01:45:12")

09/06/1972 01:45:12

PRINT CDate(2484515)

05/16/2002

See also

Conversion Functions