This article provides a simple function to return the last day of the input month.
Possible uses are below