Skip to content

Commit

Permalink
晚上DateUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
chenssy89 committed Oct 31, 2015
1 parent 9b54db7 commit 3c01547
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/com/JUtils/base/DateUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,12 @@ public static int compareDate(String startDay,String endDay,int stype) throws Ex
startDay = formatDate(startDay, "yyyy-MM-dd");
endDay = formatDate(endDay, "yyyy-MM-dd");

String formatStyle = stype==1?"yyyy-MM":"yyyy-MM-dd";
String formatStyle = "yyyy-MM-dd";
if("1".equals(stype)){
formatStyle = "yyyy-MM";
}else if("2".equals(stype)){
formatStyle = "yyyy";
}

endDay = endDay==null ? getCurrentTime("yyyy-MM-dd") : endDay;

Expand Down

0 comments on commit 3c01547

Please sign in to comment.