DRY on dayNames for template.  refactored previous and next month to be more readable