Android Time Ago from Date String? -


i implement library https://github.com/curioustechizen/android-ago in listview.

i want convert date string each item format 2015-08-12 01:01:03 , how set ?

thanks, sorry english

try this:

public static final simpledateformat df = new simpledateformat("yyyy-mm-dd hh:mm:ss");  public string convert(date datetime) {     return df.format(datetime); } 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -