formate.js 234 Bytes
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8
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
}