• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Trying to get the difference between two date/times

So I've created two difference date objects
upload_2022-4-11_18-31-56.png


upload_2022-4-11_18-31-42.png

I save them to my shared preferences and recall them later to find the difference in the two. However, since these are saved as strings, and converting them to integers doesnt work because of the format, how can I go about finding the difference?
 
Back
Top Bottom