Year Procedure

Version 7

Returns the current or specified date/time year.

Syntax

[ lYear = ] Year ( [ dt ] )

The Year procedure syntax has the following parts:

Name

Type

Description

lYear

Long

Return value: year range between 100 and 9999

dt

[Val] DateTime

Date time if given

Comments

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

Example

 

print Year()   ! prints current year "2007"

print Year(dt) ! prints year of "dt"

See Also

Day, Month, Hour, Minute, Second, Weekday, DateTime Data Type