get last day date of a month by month number using moment code example
Example: moment get month day
//The correct function to use is .date():
date.date() === 25;
//The correct function to use is .date():
date.date() === 25;