public class Solution { public static void main(String[] args) { System.out.println(isDateOdd("JANUARY 5 2013")); } public static boolean isDateOdd(String date) { Date yearStartTime = new Date(date); yearStartTime.setDate(1); // первое число yearStartTime.setMonth(0); Date currentTime = new Date(date); long time = currentTime.getDay() - yearStartTime.getDay(); if (time % 2 == 0) return false; else return true; } }