javascript 월초 월말 썸네일형 리스트형 [javascript] 월초 월말 월초 월말 getMonth("first");getMonth("last");function getMonth(type){var nDate = new Date();nDate.setDate(1);if("first" == type){alert( getDateFormat(nDate) );}if("last" == type){nDate.setMonth(nDate.getMonth()+1);nDate.setDate(nDate.getDate()-1); alert( getDateFormat(nDate) );}} function getDateFormat(date, delimiter){var newDate = new Date();if( date != null ) newDate = date; var yy = newDate.getF.. 더보기 이전 1 다음