move formatDate to ohif/core
This commit is contained in:
1 parent
a5170076db
commit
9145215596
8 files changed
+21
-17
No files matched your search
@@ -1,12 +0,0 @@
|
||||
import moment from 'moment';
|
||||
|
||||
/**
|
||||
* Format date
|
||||
*
|
||||
* @param {string} date Date to be formatted
|
||||
* @param {string} format Desired date format
|
||||
* @returns {string} Formatted date
|
||||
*/
|
||||
export default (date, format = 'DD-MMM-YYYY') => {
|
||||
return moment(date).format(format);
|
||||
};
|
||||
@@ -1,8 +1,7 @@
|
||||
import getMockedStudies from './getMockedStudies';
|
||||
import getFormattedDate from './getFormattedDate';
|
||||
|
||||
const utils = { getMockedStudies, getFormattedDate };
|
||||
const utils = { getMockedStudies };
|
||||
|
||||
export { getMockedStudies, getFormattedDate };
|
||||
export { getMockedStudies };
|
||||
|
||||
export default utils;
|
||||
Reference in new issue
Block a user