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
Post a Comment