| 4D v15 R2Year of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v15 R2
 Year of 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Year of ( date ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| date | Date |   | Date for which to return the year | |||||
| Function result | Longint |   | Number indicating the year of date | |||||
The Year of command returns the year of aDate.
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 dateSee example for the command Current date.
	Product:  4D
	Theme:  Date and Time
	Number:  
        25
        
        
        
	
	Created:  < 4D v6
	
	
	
	
	
	4D Language Reference ( 4D v15)
	
	4D Language Reference ( 4D v15 R2)
	
	
	
	4D Language Reference ( 4D v15.4)
	
	4D Language Reference ( 4D v15.3)
 Add a comment
Add a comment