There are 2 things to consider here.
First, you have to convert that number/string into date object in java. Secondly, once you have date object, you can convert it to any date format you would love. For example Dec 23, 2020 etc.
If you have date in milliseconds you can use like this
1- Date currentDate = new Date(currentDateTime); //creating Date from millisecond
2- Now we have date object, it can be formatted now.
DateFormat df = new SimpleDateFormat("dd:MM:yy:HH:mm:ss");
//formatted value of current Date
System.out.println("Milliseconds to Date: " + df.format(currentDate));
Let me know, if it is helpful for you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…