Your data structure doesn't work because both your month to and month from dates are running from the same field.
So if you filter the 'to' date to January 2018, then the from date will always just be January 2018.
What is your ultimate goal/what are you trying to achieve?
Thanks for the reply
Yes I need two date fields , I have to get all dates between start date and end date
start date : jul 2018
end date : dec 2018
01 jul 2018
02 jul 2018
03 jul 2018
31 dec 2018
looking for date range start date to end date