VBScript → Lua
The function returns the current year (yyyy) according to the script user's location.
Dim sYear sYear = CurYear()
or if being used directly within a GSE property dialog, e.g. in a Say Number block to directly announce the current year (read as single digits, not a number) to the caller:
This function returns a four digit string value.
This function can be called at any time within the call routing script.
The current date will be requested making use of the Server Script API function PBXUser.Now. This ensures that the location configuration (time zone) of the script user will be considered.
By Tom Wellige