const date = Temporal.PlainDate.from("2021-07-01");
console.log(date.daysInWeek); // 7
const date2 = Temporal.PlainDate.from("2021-07-01[u-ca=chinese]");
console.log(date2.daysInWeek); // 7Temporal.PlainDate.prototype.daysInWeek / notebook
Temporal.PlainDate.prototype.daysInWeek
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.