xD Help
package com.codegym.task.task08.task0827;
import java.util.Date;
import java.util.*;
/*
Working with dates
*/
public class Solution {
public static void main(String[] args) {
System.out.println(isDateOdd("MAY 1 2013"));
}
public static boolean isDateOdd(String date) {
Date d = new Date(date);
long d1 = (d.getTime()/1000)%2;
if(d1 == 0){
return true;
}else{
return false;
}
}
}