setMonth
import { setMonth } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Set February to 1 September 2014:
const result = setMonth(new Date(2014, 8, 1), 1)
//=> Sat Feb 01 2014 00:00:00
function setMonth<DateType extends Date>(date: DateType | number | string, month: number): DateType;