I used this code:
String[] columnDate = new String[] {"date"}; Cursor cursor1 = getContentResolver().query(Uri.parse("content://sms/inbox"), columnDate ,null, null, "date desc limit 1"); cursor1.moveToPosition(0); String msgData1Date = cursor1.getString(0);
.. and it works, but gives a date in this format "1352933381889"
How to convert to regular date / time format in String?
source share