explorer-app/utils/text.ts

6 lines
123 B
TypeScript
Raw Permalink Normal View History

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