Convert Local time to UTC and vice versa
<p>I'm working on Android application, and I want to convert local time (device time) into UTC and save it in database. After retrieving it from database I have to convert it again and display in the device's time zone.  Can anyone suggest how to do this in Java?</p>