Year

<< Click to Display Table of Contents >>

Navigation:  Appendix > Macros >

Year


 

editor.icon Year

 


 

The Year macro inserts the current year as a four-digit value.

 

The syntax for this macro is %[Year]

 

Example

 

year.macro.example

Figure 1. %[Year] Macro Example

 

Note that this macro is often used in conjunction with other macros in order to create combined output. For example the combined macros %[Time:H:mm] %[Date:dd MMMM] %[Year] output the current time, date and year:

 

combined.macro.example

Figure 2. %[Year] Combined Macro Example