CitectVBA Programming Reference > Understanding CitectVBA Language Basics > Date and Time Handling > Year

Year

The year can be displayed in one of three formats using lowercase "y"..

Value

Meaning

Example

y

Year represented only by the last digit, if the year is less than 10. Years greater than 10 will be given the value of yy.

9

yy

Year represented only by the last two digits.

09

yyyy

Year represented by the full 4 digits.

1909