DateValue(date) returns a Variant/Date containing the specified date : DateValue « Date Functions « VBA / Excel / Access / Word






DateValue(date) returns a Variant/Date containing the specified date

 
Sub dateDemo4()
   Debug.Print dateValue("July 2, 1971")
End Sub

 








Related examples in the same category

1.DateValue("Nov, 23 04") returns 11/23/2004
2.Use the OnTime method to run a VBA procedure on a particular day: runs the DisplayAlarm procedure at 5:00 p.m. on December 31, 2007: