fix the bug that didn't print out dates that are first day of a month