Use android.text.format.DateFormat

On Apr 29, 2:47 pm, Brad Stintson <[email protected]> wrote:
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to