dateToString(date) {
		let string = `${date.getHours()}:`;
		if (string.length < 3) string = '0' + string;

		string += `00${date.getMinutes()}:`.slice(-3);
		string += `00${date.getSeconds()},`.slice(-3);
		string += `${date.getMilliseconds()}000`.slice(0,3);
		return string;
	}
Get duration format from Date object

@param {Date} date
@return {string} Duration in format '00:00:00,000'