Count Down to Christmas with Joda-Time
问题 I am trying to implement Joda-Time to count down to Christmas, but so far I'm struck. I tried java.util.Date and most StackOverflow questions and answers suggested to use Joda-Time. But I can't get it working. Some codes give different answers. Here are some codes I tried, DateTime now = new DateTime(); DateTime christmas = new DateTime(2012, 12, 25, 8, 0, 0, 0); Days daysToChristmas = Days.daysBetween(today, christmas); System.out.println(daysToChristmas.toString()); And this prints P187D as