Home » Java » Convert a GMT+0 time into local time on Android and give Hours/Min as a string

Convert a GMT+0 time into local time on Android and give Hours/Min as a string

Posted by: admin June 30, 2018 Leave a comment

Questions:

I used the search function but there was just too much information with too many different methods. I just want to solve this problem, after 1 hour of searching.

I get a string like this from Firestore: 2018-05-22T10:30:00+00:00 (can change if needed)

Now I want to change the time to the local timezone on the device. At the end I need 2 different strings like these:

hour: 10:30
date: Tuesday, May 22
Answers: