int = LastDateOfMonth(nYear,nMonth)
This macro function takes in 2 numbers (year and month) and returns a number which is the date for the last day of the month on that year.
•Make sure the first parameter that you pass is the year, and that the second is the month number from 1-12. Passing a month number outside of that range will generate a run-time error during script generation.
•Remember that the date returned by this function is a 32-bit date, not a number 1-31 corresponding to the number of days in the month. This function is not the same as NumDaysInMonth.
nEveOfMillenium = LastDateOfMonth(1999, 12)
Topic 105069 updated on 05-Mar-2002.
Topic URL: https://www.qppstudio.net/webhelp/index.html?lastdateofmonth.htm