Function dateFormat

  • @description: 时间的转换(目前支持 年,月,日,时,分,秒,星期) @author: wuxh @Date: 2020-05-06 12:05:28

    Parameters

    • date: Date
    • formatStr: string

    Returns string