The java.util.Date toString() method displays the date in the local time zone.
toString()
There are several common scenarios where we want the data to be printed in
Well if you want to use java.util.Date only, here is a small trick you can use:
String dateString = Long.toString(Date.UTC(date.getYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()));