Blame view

apps/filters/time.js 145 Bytes
陈峰 authored
1 2 3 4 5 6 7
import dayjs from 'dayjs';

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

  return day.format(format);
};