explorer-app/utils/text.ts

6 lines
123 B
TypeScript
Raw Normal View History

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