Did you try java.time.OffsetDateTime ?you can refer this code snippet public static void main(String[] args) {
String strDateTime = "Tue Jun 29 15:37:43 GMT+05:30 2021";
DateTimeFormatter dtfInput = DateTimeFormatter.ofPattern("E MMM d H:m:s O u", Locale.ENGLISH);
Offs...