Skip to content

Commit

Permalink
✨ : #492 - 계획 작성 날짜를 YYYY-MM-DD 형식으로 바꿔주는 changeCreateAtToDate hook 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
MinwooP committed Jun 3, 2024
1 parent 44e6590 commit d071d13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/changeCreatedAtToDate.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const changeCreatedAtToDate = (createdAt: string) => {
const [yearMonthDate] = createdAt.split('T');
return yearMonthDate.replace(/-/g, '.');
};
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { alertAndLogin } from '@/utils/alertAndLogin';
export { changeCreatedAtToDate } from '@/utils/changeCreatedAtToDate';
export { changeRemindTimeToNumber } from '@/utils/changeRemindTimeToNumber';
export { changeRemindTimeToString } from '@/utils/changeRemindTimeToString';
export { checkEmailValidation } from '@/utils/checkEmailValidation';
Expand Down

0 comments on commit d071d13

Please sign in to comment.