Year Procedure |
Version 7 |
Returns the current or specified date/time year.
[ 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 |
If date time is not specified, current date time is used.
print Year() ! prints current year "2007"
print Year(dt) ! prints year of "dt"
Day, Month, Hour, Minute, Second, Weekday, DateTime Data Type