안녕하세요 ^^
제가 다음과 같이 작성하였습니다
final Calendar c = Calendar.getInstance();
_year = c.get(Calendar.YEAR);
_month = c.get(Calendar.MONTH);
_day = c.get(Calendar.DAY_OF_MONTH);
이렇게 하고 month 를 값을 보면 한달이 적게 나옵니다
즉. 오늘이 9월 2일이면 8월2일이라고 나옵니다
폰에 날자도 현재 9월2일로 되어 있구요..
이런현상은 왜 이럴까요..혹시 아시는분 도움부탁드립니다
감사합니다
정상입니다. 실제로 달을 표기할 때 +1 해주면 되는 문제 입니다.
프로그램상의 start value는 통상 0부터 시작합니다.
public static final int JANUARY
Value of the
MONTH
field indicating the first month of the year.