안드로이드/String
현재 날짜와 시간을 가져오는 방법
설.현.아빠
2011. 4. 13. 15:48
가장 간단한 방법을 찾다가....찾았다^^
SimpleDateFormat formatter = new SimpleDateFormat ( "yyyy.MM.dd HH:mm:ss", Locale.KOREA );
Date currentTime = new Date ( );
String time = formatter.format ( currentTime );
요거 3줄이면 땡!!!!!!!!