(time: MomentInput, format = 'YYYY-MM-DD')
| 11 | * @returns 格式化日期字符串 |
| 12 | */ |
| 13 | export const formatDate = (time: MomentInput, format = 'YYYY-MM-DD') => (time ? Moment(time).format(format) : null); |
| 14 | |
| 15 | /** |
| 16 | * 格式化time为时间字符串 |
no outgoing calls
no test coverage detected