BigIntSupport extends dayjs(), dayjs.unix APIs to support BigInt argument. var bigIntSupport = require("dayjs/plugin/bigIntSupport"); dayjs.extend(bigIntSupport); dayjs(BigInt(1666310421101)); dayjs.unix(BigInt(1666311003));