feat(FE): show components and helper
This commit is contained in:
parent
035bf88e5f
commit
c20adaa865
4 changed files with 232 additions and 0 deletions
3
resources/js/helpers/DateFormatter.ts
Normal file
3
resources/js/helpers/DateFormatter.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function dateFormatter(date: Date = new Date()): string {
|
||||
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue