How can i convert String to date ? Android
===

I have `String id = c.getString("data"); String name = ((TextView) view.findViewById(R.id.TextView05)).getText().toString();`

`public static String getDate(long seconds, String dateFormat)
    {

        DateFormat formatter = new SimpleDateFormat("yyyy MMMM dd HH:mm");
        long now = System.currentTimeMillis();
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(now);
        return formatter.format(calendar.getTime());
    }` Any help?