import dayjs from 'dayjs'; export default (value, format = 'YYYY-MM-DD') => { const day = dayjs.unix(value); return day.format(format); };