【发布时间】:2011-09-13 08:53:39
【问题描述】:
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
有什么问题?
【问题讨论】:
标签: java android date-format simpledateformat