import moment from 'moment' export function formatDate({ params: formatPattern, row, column, cellValue, index }) { const date = 'YYYY-MM-DD' return moment(cellValue).format(formatPattern || date) } export default { formatDate }