[java]代码库
import java.util.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class Main {
public static void main(String[] args) throws ParseException {
Scanner scan = new Scanner(System.in);
String s1 = scan.next();
String s2 = scan.next();
DateFormat f1 = new SimpleDateFormat("MM,dd,yyyy");
Date d1 = f1.parse(s1), d2 = f1.parse(s2);
if ( d1.equals(d2) )
System.out.println("=");
else if ( d1.before(d2) )
System.out.println("<");
else
System.out.println(">");
long days = (d2.getTime() - d1.getTime()) / (1000 * 24 * 60 * 60);
System.out.println(Math.abs(days));
}
}