manisha
12/10/2018 - 1:30 AM

Pretty time

 SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");
                    Date date=new Date();
                    try {
                        date = sdf.parse(sources.getTime());
                    } catch (ParseException e) {
                        e.printStackTrace();
                    }

                    String prettyTime = new PrettyTime().format(date);
                    textViewDate.setText(prettyTime);