java convert datetime to utc code example
Example: new date to utc string java
myJavaUtilDate.toInstant().toString()
// output = "2020-05-05T19:46:12.912Z"
myJavaUtilDate.toInstant().toString()
// output = "2020-05-05T19:46:12.912Z"