Date Procedure

Version 7

 

Returns the current or specified date/time date portion.

Syntax

[ dtDate = ] Date ( [ dt ] )

The Date procedure syntax has the following parts:

Name

Type

Description

dtDate

DateTime

Return value: date portion of given date or current date

dt

[Val] DateTime

Date time if given

Comments

If date time is not specified, current date time is used.  

Example

print Date()   ! prints current date "12/6/2007"
print Date(dt) ! prints date part of "dt" (no time of day)

See Also

Time, SDate, Day, Month, Year, DateTime Data Type