html:
<div class="sj"></div>
js:
var date = new Date(1575860243000);
Y = date.getFullYear() + '-';
M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + '';
YMD = Y + M + D;
console.log(YMD)
$(".sj").html(YMD);