Name

Date Function

Syntax

Date

Return Value

Date returns a Variant of subtype Date.

Description

Returns the current system date.

Rules at a Glance

They don’t come any easier than this!

Programming Tips & Gotchas

To return both the current date and time in one variable, use the Now function.

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.