I am getting a date/time string from web in the format of yyyy-mm-dd HH:MM:SS
and it is in UTC.
I have to create a Date
object and print the date object in GMT format, but I don't want the to change, for example if I read the date as 2014-10-22 09:00:00
, then it should be displayed as 2014-10-22 09:00:00 GMT
instead of 2014-10-22 13:30:00
How do I do this? Please suggest me.
(FYI, Currently, UTC time is 10:25 AM, in india current time is 3:55 PM).
I am using Jaxb parser to parse the XML. Any suggestions are invited