Add moment.js support
This commit is contained in:
parent
f8d75d821f
commit
c886a51b7d
6 changed files with 27 additions and 6 deletions
7
app/utils/date-helpers.js
Normal file
7
app/utils/date-helpers.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
function formatDate(date, format) {
|
||||
return window.moment(date).format(format);
|
||||
}
|
||||
|
||||
export {
|
||||
formatDate
|
||||
};
|
Reference in a new issue