포맷 난 그냥 날짜과 같이 표시 할 :달력 날짜
Saturday, May 26, 2012 at 10:42 PM
가 여기에 지금까지 내 코드입니다 :
Calendar calendar = Calendar.getInstance();
String theDate = calendar.get(Calendar.MONTH) + " " + calendar.get(Calendar.DAY_OF_MONTH) + " " + calendar.get(Calendar.YEAR);
lastclick.setText(getString(R.string.lastclick) + " " + theDate);
이는 월, 일의 숫자를 보여줍니다, 그리고 올해는 더 좋은 방법이 있어야할까요? PHP의 date()
함수를 사용하는 것과 같은 간단한 방법이 있습니까?
예. 왜 이렇게 어려운지 보지 마라. – scarhand