daysTillXmas
that will be placed inside the Date
class. The method returns how many days away the Date object is from Christmas, December 25, in the same year. For example, Nov. 22 is 33 days away, Sep. 3 is 113 days away, Dec 25 is 0 days away, and Dec 31 is -6 days away.
Date d = new Date(9, 3);
System.out.println(d.daysTillXmas()); // 113