The accepted answer doesn't account for AM/PM time strings. For this, ensure the HH in the format string are capitalized which denotes an hour range between 0 and 23.
HH
const d = dayjs(dd).add(1, "day").format("YYYY-MM-DDTHH:mm")