The DateValue() function converts a string to a Date.
Note: If the year part of date is omitted this function will use the current year from the computer's system date.
Note: If the date parameter includes time information it will not be returned. However, if date includes invalid time information, a run-time error will occur.
This function has the form:
|date||(required) A date from January 1, 100 through December 31, 9999 or any expression that can represent a date, a time, or both a date and time|
The following example shows the basic use of this function:
This produces the following result (each line in a separate pop-up message box):
|Supported in Version:||1.0|