It is used to find the Timestamp based on the given Timezone
//Creating format based on the need SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); //Set the Timezone dateFormat.setTimeZone(clientTimeZone); String clientTime = dateFormat.format(date); Date date2 = new Date(clientTime); // System.out.println(date2);