Year of

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 3


Year of (aDate) Number

ParameterTypeDescription
aDateDateDate for which to return the year
Function resultNumberNumber indicating the year of date

Description

The Year of command returns the year of aDate.

Examples

1. The following example illustrates the use of Year of. The results are assigned to the variable vResult.

   vResult:= Year of (!12/25/92!)  ` vResult gets 1992
   vResult:= Year of (!12/25/1992!)  ` vResult gets 1992
   vResult:= Year of (!12/25/1892!)  ` vResult gets 1892 
   vResult:= Year of (!12/25/2092!)  ` vResult gets 2092 
   vResult:= Year of (Current date)  ` vResult gets year of current date

2. See example for the command Current date.

See Also

Day of, Month of.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next