org.apache.commons.lang3.Range
날짜 범위 확인 java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.util.Date nowDt = new java.util.Date(); Range rangeDate = Range.between(df.parse("2020-03-17 00:00:00"), df.parse("2020-04-08 23:59:59")); if (rangeDate.contains(nowDt)) { ... } ..
#Tech./JAVA
2020. 4. 9. 09:55
최근댓글