Date now = new Date();
long nowMills = now.getTime();
log.debug("▶▶▶▶▶ 현재일시: "+ now);
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //24시간은 HH
Date start = format.parse("2017-09-29 12:01:00");
long startMills = start.getTime();
Date end = format.parse("2017-10-09 23:59:59");
long endMills = end.getTime();
boolean result1 = startMills <= nowMills;
boolean result2 = nowMills <= endMills;
log.debug("▶▶▶▶▶ 비교결과1 (9/29 <= 오늘): " + result1);
log.debug("▶▶▶▶▶ 비교결과2 (오늘 <= 10/09): " + result2);
if (startMills <= nowMills && nowMills <= endMills) {
kakaoInfo.setString("KAKAO_CODE", "K0047");
} else {
kakaoInfo.setString("KAKAO_CODE", "K0021");
}