fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Home > lang > cdate
 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
Documentation
History
 
CDate
Syntax
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.

Examples

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

09/06/1972 01:45:12

PRINT CDate(2484515)

05/16/2002

See also

Conversion Functions