Date and Now : Now « Date Functions « VBA / Excel / Access / Word






Date and Now

 
Sub dateFunctions()
   Debug.Print "The present date and time is: " & Now
   Debug.Print "Today's date is: " & Date
End Sub

 








Related examples in the same category

1.Now returns a Variant/Date containing the current date and time according to your computer
2.Use Now to retrieve current Date and Time