String Date1 = "2020-11-11"
String Date2 = "2020-12-12"
Date1.compareTo(Date2) // -1// 返回值说明:相等返回0,大于参数返回1,小于参数返回-1