Mohd Aslam's Blog | Learning and Sharing…

Mohd Aslam's Blog | Learning and Sharing…

瀏覽:1399
日期:2024-04-22
To get date and time, we have used the Calendar class to get the instance to phone clock: Calendar cal = Calendar.getInstance(TimeZone.getDefault()); TimeZone would be the one set in the phone. Finally we have used SimpleDateFormat to get the time in the ...看更多