Appendices > Macro Language > Built-in Functions > All Functions (Alphabetical) >
int = DayDescending(nAnyDate)
This macro function takes a date as parameter and returns the number of days until the end of the year. This is the function used internally by Q++ to evaluate the [t-] token.
nDaysUntilDec31st = DayDescending(Today())
Note that the value of this function on December 31st is 0, not 1.
See also : DaysAscending.