The following module, for instance, provides to functions; one that returns the current year and month and one that returns the current year, month, and day:
Function GetYearMonth() Return Date.Now.Year.ToString("0000") & Date.Now.Month.ToString("00") End Function Function GetYearMonthDay() Return Date.Now.ToString("yyyyMMdd") End Function |
Any of these functions can be called by using the following syntax in an expression:
| GetYearMonth() |
Functions contained in modules may also contain parameters.

Looking for Additional Guidance?