Update MyDate.java

need to fix next and previous methods to take into account changing day when it's a leap year or daymax is less