<< Click to Display Table of Contents >> DateValue (function) |
DateValue(DateExpression)
Returns a Variant variable (type: date) corresponding to the specified date expression. DateExpression can be a string or any expression that represents a date, a time, or both a date and a time.
See also: DateSerial, Day, Month, Now, Time, TimeSerial, TimeValue, Weekday, Year
Example:
Sub Main
Print DateValue("25. September 2020") ' returns 2020-09-25
End Sub