explorer-app/utils/text.ts
2024-09-12 08:42:37 +02:00

5 lines
123 B
TypeScript

import moment from 'moment'
export function formatDate(date: Date | string) {
return moment(date).format('MM / YYYY')
}