CDate()

Top  Previous  Next

CDate() - Convert to Date Value

Description

Converts a formatted date string to a date variable type.

Date = CDate(String Date)

Returns Date

Example

strDate = "February 11, 2000" 'Formatted String

 

SMEvent.Raise "Trace", CDate(strDate) 'Date Type