Refactor code, using constants to store month and day names in arrays, reducing code clutter