我有两个日历calendarCurrent
,calendarReceived
如何检查它们是否在同一日期(不要考虑小时、分钟、秒)
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_PATTER, Locale.US);
String receivedStringDate = "2012-12-01T00:33:24.935Z";
sdf.parse(receivedStringDate, new ParsePosition(0));
calendarCurrent = Calendar.getInstance(Locale.US);
calendarReceived = sdf.getCalendar();