Closed madzadev closed 5 years ago
Got what I needed, using moment.js library:
const startDate = moment(moment(start).format('YYYY-MM-DD')); const endDate = moment(moment(end).format('YYYY-MM-DD'));
const lenght = endDate.diff(startDate, 'days')+1;
event.start
andevent.end
returns values in the following format:'2017-12-18 12:00:00'
. is there a way to get the event length (in days for example), or should i do manual calculations between start and end dates?