Разница дат в минутах const getMinutesDiffBetweenDates = (dateInitial, dateFinal) => (dateFinal - dateInitial) / (1000 * 60);JavaScriptCopy getMinutesDiffBetweenDates( new Date('2021-04-24 01:00:15'), new Date('2021-04-24 02:00:15') ); // 60JavaScriptCopy Дата и время JavaScript