Den*_*one 15 java android date simpledateformat
可以在2012年1月4日删除"0"吗?
我目前正在使用以下Java来获取日期格式
Monday, January 04, 2012
Run Code Online (Sandbox Code Playgroud)
我希望它看起来像
Monday, January 4, 2012
Date anotherCurDate = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("EEEE', 'MMMM dd', ' yyyy");
final String formattedDateString = formatter.format(anotherCurDate);
final TextView currentRoomDate = (TextView) this.findViewById(R.id.CurrentDate);
Run Code Online (Sandbox Code Playgroud)
Jav*_*ave 44
SimpleDateFormat formatter = new SimpleDateFormat("EEEE', 'MMMM d', ' yyyy");
Run Code Online (Sandbox Code Playgroud)
应该这样做(一个'而不是两个)?
http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html