Write a function named isSameWeek that receives 2 Dates as parameters.
The function should return a boolean verifying if the 2 Dates are in the same week.
NOTE: for the purpose of this function, we consider that a week starts on Monday and ends on Sunday.
date1
=date2
=date1
=date2
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro