UNPKG

@daysnap/utils

Version:
9 lines (7 loc) 255 B
/** * 格式化日期 * fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问题 * 2020/12/12 12:12:12 这种就是通用的 */ declare function normalizeDate(value: string | number | Date): Date; export { normalizeDate };