My client told me that he will provide me timezone offset and date. I need to converted date in GMT accordingly.
I am not sure If I am correct side or not. I think offset means how many hours up and down from GMT and after getting that apply that difference to date time for getting converted one.
Please look at below what I am trying to achieve client expectation.
TimeZone timezone = TimeZone.getTimeZone("GMT");
timezone.setRawOffset(28800000);
If above code lines are correct, what would be code for getting converted date? Please suggest...
Regards