반응형
java는 월(month)은 0부터 시작... 12월은 11값을 사용해야됨... ㅡㅡ;
받을 때는 +1, 넣을 때는 -1...
String [] arrDate = etDate.getText().toString().split("-");//"2019-10-03"
DatePickerDialog dialog = new DatePickerDialog(v.getContext(), null,
Integer.valueOf(arrDate[0]),
Integer.valueOf(arrDate[1]) - 1,
Integer.valueOf(arrDate[2]));
자바... 진자 좆같네...
반응형
'Android' 카테고리의 다른 글
네이버 플랫폼 맵 PathOverlay활용. 경로 그리기 (1) | 2019.10.11 |
---|---|
androidx.appcompat.widget.toolbar vs android.support.v7.widget.toolbar (0) | 2019.10.05 |
error: cannot resolve constructor (0) | 2019.10.01 |
Toolbar (0) | 2019.09.30 |
error: Can't create handler inside thread that has not called Looper.prepare() (0) | 2019.09.28 |
댓글