open-nomad/ui/app/helpers/format-date.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
225 B
JavaScript
Raw Normal View History

import moment from 'moment';
import Helper from '@ember/component/helper';
export function formatTs([date]) {
const format = 'MMMM D, YYYY';
return moment(date).format(format);
}
export default Helper.helper(formatTs);