defining get month
creating function date to output
defining IO
changing dateToOutput to accept date isntead of calendar
refactoring everything