We can format the result in date format to get the result as. DATEVALUE ignores time information. The DATEVALUE function converts a date that is stored as text to a serial number that Excel recognizes as a date.
The command button needs to be placed in the Excel worksheet to add the lines of the VBA program to it.
We can format the result in date format to get the result as. Remember though that your computers system date setting may cause the results of a DATEVALUE function to vary from this example. The DATEVALUE function converts a date that is stored as text to a serial number that Excel recognizes as a date. The Excel DATEVALUE function returns the serial number of date.