new Date or timestamp -> "YYYY-MM-DD HH:ii:ss" 만들기
new Date(Date.UTC(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), new Date().getHours(), new Date().getMinutes(), new Date().getSeconds())).toISOString().replace("T", " ").replace(".", " ").slice(0, 19); 혹은 var date = new Date(); var date_format_str = date.getFullYear().toString() + "-" + ((date.getMonth() + 1).toString().length == 2 ? (date.getMonth() + 1).toString() : "0..