I use following code to display title and date from database. The date is in long format. How can I display it in string form using a function.
Cursor eventsCursor = db.retrieveProEvents(pro_id); startManagingCursor(eventsCursor); String[] from = new String[]{DBAdapter.KEY_TITLE,DBAdapter.KEY_DATE}; int[] to = new int[]{R.id.title,R.id.date}; ListAdapter event = new SimpleCursorAdapter(this, R.layout.row, eventsCursor, from, to); setListAdapter(event); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en