DateValue (function)

Syntax DateValue (date_string$)
Description Returns a Date variant representing the date contained in the specified string argument.
Example This example returns the day of the month for today's date.
Sub Main()
  Tdate$ = Date$
  tday$ = DateValue(tdate$)
  MsgBox "The date value of " & tdate$ & " is: " & tday$
End Sub
See Also TimeSerial (function); TimeValue (function); DateSerial (function).
Platform(s) All.