CDate Function

Syntax

CDate(expr)
-or-
CVDate(expr)

Group

Conversion

Description

Convert to a Date value.

Parameters Description
expr Convert a number or string value to a date value.

Sub Main
    Debug.Print CDate(2) ' 1/1/00
End Sub