'use strict'; const ical = require('ical'); const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; ical.fromURL('http://lanyrd.com/topics/nodejs/nodejs.ics', {}, function (err, data) { for (let k in data) { if (data.hasOwnProperty(k)) { var ev = data[k]; if (data[k].type == 'VEVENT') { console.log(`${ev.summary} is in ${ev.location} on the ${ev.start.getDate()} of ${months[ev.start.getMonth()]} at ${ev.start.toLocaleTimeString('en-GB')}`); } } } });