Date, Date$ Functions

Syntax

Date

Return Value

Date returns a Variant of subtype Date; Date$ returns a String data type.

Description

Returns the current system date.

Rules at a Glance

They don't come any easier than this!

Programming Tips and Gotchas

  • Although Date returns a Variant, you can assign the return value of Date to a variable declared as a Date data type.

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

  • You can set the system date by using the Date statement.

See Also

Date Statement, IsDate Function, Now Function
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.159.229