3 ms·
Wouldn't this work? const firstInMonth = Temporal.Now.with({ day: 1 });
by moogly 4y ago
Wouldn't this work?
const firstInMonth = Temporal.Now.with({ day: 1 });
- chrismorgan 4y agoCorrection: Temporal.Now.plainDateISO().with({ day: 1 }) Today (2022-10-10 on my computer), that’ll get you a PlainDate representing 2022-10-01. The “ISO” in there identifies the calendar. Want to know what the first of the current month in the Hebrew calendar is? Temporal.Now.plainDate("hebrew").with({ day: 1 }) And that gives you 2022-09-26[u-ca=hebrew].