API reference
endOfISOWeek
API index · Input types and conventions · Installation
endOfISOWeek(value) → same kind
Find Sunday, or its final nanosecond, at the end of the containing ISO week.
import { endOfISOWeek } from '@frantss/temporal-fns';
endOfISOWeek(Temporal.PlainDate.from('2026-10-23')).toString(); // => '2026-10-25'
endOfISOWeek(Temporal.PlainDate.from('2025-12-31')).toString(); // => '2026-01-04'
endOfISOWeek(Temporal.PlainDateTime.from('2026-10-23T14:30')).toString(); // => '2026-10-25T23:59:59.999999999'Related: startOfISOWeek, endOfWeek, isSameISOWeek.
Behaviors: BND-001: Plain date boundaries return complete dates; BND-002: Plain date-time boundaries retain nanosecond endpoint precision; BND-015: Every zoned boundary returns the local period boundary in the original zone; BND-004: Month and quarter ends follow leap years and year boundaries; BND-016: An available final week boundary is returned exactly at the date limit.