Date Function
Returns the current system date.
Date
Remarks
The following example uses the Date function to return the current system date:
Dim MyDate
MyDate = Date ' MyDate contains the current system date.
Den här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
Returns the current system date.
Date
The following example uses the Date function to return the current system date:
Dim MyDate
MyDate = Date ' MyDate contains the current system date.