<script type="text/javascript"> getMonthBetween("2015-05-01","2016-05-01") function getMonthBetween(start,end){ var d1 = new Date(start); var d2 = new Date(end); var month1 = d1.getMonth() + 1,month2 = d2.getMonth() + 1…
1--Java 分析:调用java中Calendar类 int days(Date date1,Date date2){ Calendar cal = new Calendar.getInstance(); cal.setTime(date1); int time1 = cal.get(Calendar.DAY_OF_YEAR); cal.setTime(date2); int time2 = cal.get(Calendar.DAY_OF_YEAR); //long days = Math.a…