this is my "19-Aug-2019 11:05" string and I need to convert into dd-mmm-yyy hh:mm format(in GMT), separately I need to get the current GMT time also, appreciate your help,
Date date1 = sdf.parse(lastupdated2)
println date1
//println lastupdated2
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));```