반응형
1. Calendar를 Date로 변환
Calendar cal = Calendar.getInstance();
Date date = new Date(cal.getTimeInMillis());
2. Date를 Calendar로 변환
Date date = new Date();
Calendar cal = Calendar.getInstance();
cal.setTime(date);
'Android' 카테고리의 다른 글
Access Not Configured - youtube data api v3 검색시 나타나는 에러 (0) | 2014.11.01 |
---|---|
android 이클립스 keytool sha1 알수있는 방법 (0) | 2014.11.01 |
android 문자열로 클래스 불러오기 Class.forName(str) (0) | 2014.10.31 |
android url주소값으로 이미지 불러오기 (0) | 2014.10.30 |
android Context에서 findViewById 호출하는방법 (1) | 2014.10.28 |