Код: Выделить всё
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date date = (Date)formatter.parse("2011-09-13");
Log.e(MY_DEBUG_TAG, "Output is "+ date.getYear() + " /" + date.getMonth() + " / "+ (date.getDay()+1));
Код: Выделить всё
09-13 14:20:18.740: ERROR/GoldFishActivity(357): Output is 111 /8 / 3Подробнее здесь: https://stackoverflow.com/questions/739 ... at-problem
Мобильная версия