Corrected some date errors.
Added a function to get the last date of each month. This is to help with error-checking when the user is entering the date.