It is used to find the Timestamp based on the given Timezone
1 2 3 4 5 6 7 8 | //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); |