Completed increment function in Date class

also added out of range handling in both getday and getmonth functions
of the date class