date类型如何比较大小

Date a

Date b

1、a.after(b) a.before(b) a.equals(b)

2、A.compareTo(b)

posted @ 2018-09-04 17:47  一个骄傲的少年  阅读(549)  评论(0编辑  收藏  举报