Function dateFormat

  • 将给定的日期格式化为指定的日期格式字符串。

    Parameters

    • date: undefined | null | string | number | Date

      要格式化的日期。可以是字符串、日期对象或时间戳。

    • format: string = "yyyy/MM/dd HH:mm:ss"

      日期格式字符串,例如 "yyyy/MM/dd HH:mm:ss"。

    Returns string

    格式化后的日期字符串。

Generated using TypeDoc