// 가입일 구하기
const getDateDiff = (d1, d2) => {
const date1 = new Date(d1);
const date2 = new Date(d2);
const diffDate = date1.getTime() - date2.getTime();
return Math.abs(diffDate / (1000 * 60 * 60 * 24)); // 밀리세컨 * 초 * 분 * 시 = 일
};
getDateDiff("2021-09-01", "2021-10-01");