import moment from "moment";

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

export default formatDate;
