You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@amaydiam Currently, the library expects the date in milliseconds since epoch format - for example, the format returned by System.currentTimeMillis(). If you receive the date in String format, you need to first convert it to a long. Something along the following lines should work (Note:- This code is not tested*
//Declare SDF as a static somewherestaticfinalSimpleDateFormatDATE_FORMAT = newSimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//Then, wherever you receive the String date, do thislongdateAsLong = DATE_FROMAT.parse(stringDate).getTime();
relativeTimeTextView.setReferenceTime(dateAsLong);
How setText if I have String Date like "2015-08-02 01:01:50" ?
The text was updated successfully, but these errors were encountered: