Skip to content

@technobuddha > library > Time > Week

Function: isSameWeek()

ts
function isSameWeek(
   input1: Date, 
   input2: Date, 
   options: DateOptions): boolean;

Defined in: is-same-week.ts:15

Determine if two dates occur in the same week

Parameters

ParameterTypeDescription
input1DateThe first date
input2DateThe second date
optionsDateOptionssee DateOptions

Returns

boolean

true, if the two dates occur in the same week

Default Value

ts
utc false