How to get specific dates within a date range

How to get specific dates within a date range

Hi All,

Below is the scenario.

Start Date : Feb 5
End Date: Feb 20

I need to find which all other date ranges falls in this range. Other date ranges are

Record 1
Start Date : Feb 1
End Date: Feb 15

Record 2
Start Date : Jan 27
End Date: Feb 27

Record 3
Start Date : Feb 15
End Date: Feb 21


My output needs to be like this below.
Record 1:
Feb 5, Feb 6, Feb 7 ...... Feb 15

Record 2: 
Feb 5, Feb 6, Feb 7 ...... Feb 20

Record 3:
Feb 15, Feb 16, Feb 17.... Feb 20

Please advise how to loop this condition in a jquery ?