Hex Core JS
    Preparing search index...

    Function dateTrunc

    • Truncates a given date time object to the most recent start of a given unit.

      Parameters

      • dateTime: DateTime

        The date time object to truncate.

      • unit: OpUnitType

        The unit to truncate to.

      Returns Dayjs