Date function

Category: Date & Time

Summary

Current system date.

Syntax

Returns a Variant (Date) containing the current system date.

Example

Example
This example uses the Date function to return the current system date.
Dim MyDate
MyDate = Date ' MyDate contains the current system date.

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/date-function

Back to Functions