open-vault/ui/app/helpers/date-format.js
2018-11-20 15:15:52 -08:00

9 lines
211 B
JavaScript

import { helper } from '@ember/component/helper';
import formatDate from 'date-fns/format';
export function dateFormat([date, format]) {
return formatDate(date, format);
}
export default helper(dateFormat);