9 lines
211 B
JavaScript
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);
|