2021年4月25日星期日

How can I consider given date in string format as est and convert it to utc in java?

I have a date in the string format String date = "2021-04-26 08:28:56 "

Now, I want to consider this as an EST Date and convert it into UTC.

The UTC for this would be "2021-04-25 10:58:56"

So,

Input :

2021-04-26 08:28:56

Output :

2021-04-25 10:58:56

How can I do this in Java ?

https://stackoverflow.com/questions/67260318/how-can-i-consider-given-date-in-string-format-as-est-and-convert-it-to-utc-in-j April 26, 2021 at 11:02AM

没有评论:

发表评论