I have a record with a date and time, and I would like to convert the transaction date from the current date, differentiate and show the number of days.
For example,
If the date time is set in the record, which is 1 hour earlier than now, the system should show an hour ago ...
Similarly, if there is a record 3 days before, instead of showing the date, I would like to show “3 days ago”.
android
codebased
source share