/* 获取编辑时间 */ DateFormat curDateFomat = new SimpleDateFormat("yyyy-mm-dd"); Date flagDate = curDateFomat.parse("2016-12-31"); Date editDate = curDateFomat.parse(csOrderHistory.getEditDate()); int timeFlag = flagDate.compareTo(editDate); /* 解析信息 */ JSONObject curCsOrderInform = null; if(timeFlag > 0) { funcZ(); } else { funcA(); }
Java 既有格式化时间的比较
最新推荐文章于 2024-07-09 23:57:27 发布