I want to show the transaction history on my project. But I want to show like transaction was 2m ago or 2h ago. For this reason how can I calculate and control this date calculation.
The variable came like
dd/mm/yyy hh:mm:ss
I want to show like after calculation
1m
1d