Skip to content

@technobuddha > library > Time > Month

Function: isSameMonth()

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

Defined in: is-same-month.ts:14

Determine if two dates occur in the same month

Parameters

ParameterTypeDescription
input1DateThe first date
input2DateThe second date
optionsDateOptionssee DateOptions

Returns

boolean

true, if the two dates occur in the same month

Default Value

ts
utc false