자바스크립트 날짜
var now = new Date();
var year= now.getFullYear(); var mon = (now.getMonth()+1)>9 ? ''+(now.getMonth()+1) : '0'+(now.getMonth()+1); var day = now.getDate()>9 ? ''+now.getDate() : '0'+now.getDate(); var chan_val = year + '-' + mon + '-' + day; // 날짜 2015-00-00 |