문제 링크 : Number of Days Between Two Dates
/** * @param {string} date1 * @param {string} date2 * @return {number} */ var daysBetweenDates = function(date1, date2) { return Math.abs((new Date(date1)-new Date(date2))/86400000) };