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

10 lines
225 B
JavaScript

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);