import moment from "moment";

function addDaysToDate(date: number, days: number, format: string = 'YYYY-MM-DD') {
	date = Number(date);
	days = Number(days);
	const specificDate = moment(date);
	specificDate.add(days, 'days');
	return specificDate.format(format);
}

export default addDaysToDate;
