Please enable JavaScript to view this site.

 

int = LastDateOfMonth(nYear,nMonth)

 

This macro function takes in 2 numbers (nYear and nMonth) and returns the date for the last day of the month on that year.

nNewYearsEve = LastDateOfMonth(201912)

See also: FirstDateOfMonth and NumDaysInMonth.

 


Topic 105069, last updated on 18-Apr-2020