public static void main(String[] args) throws ParseException {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd 23:59:59");
Date date = new Date(1592409600000L);
String d1= simpleDateFormat.format(date);
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date res = format.parse(d1);
System.out.println(res.getTime());
}