fix prevMonth, it tok 11 years, and added getYear and getMonth functions