Right way to format date with strings like today, yesterday, tomorrow etc

前端 未结 6 564
臣服心动
臣服心动 2021-02-04 00:31

I have a date textview. And my textview holds a date string like 2011.09.17. Well I still do want to have that but I also want to add some more user friendly info for some speci

6条回答
  •  星月不相逢
    2021-02-04 01:11

    You could try getRelativeDateTimeString in DateUtils http://developer.android.com/reference/android/text/format/DateUtils.html

提交回复
热议问题