• converts a JavaScript Date to a DateOnly object

    Parameters

    • date: Date

      the Date to convert

    Returns DateOnly