• JMap.Util.Date.getDate

    Returns the date for the given input.

    Parameters

    • date: JDateLike

      the date as a string, number, or Date

    Returns Date

    Example

    // returns a date object for the given timestamp
    JMap.Util.Date.getDate(1631879544000)

    // returns a date object for the given ISO string
    JMap.Util.Date.getDate("2012-09-27")