80,351
社区成员
发帖
与我相关
我的任务
分享
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date start = sdf.parse("2010-01-01");
Date now = sdf.parse("2013-01-01");
long x = Math.abs((start.getTime()-now.getTime())/(24*60*60*1000));
System.out.println("- - - - - - > " + x);