How can we split a rows to multiple rows based on date field. For eg. consider the following record.

ID FROM_DATE TO_DATE
1 01-Jan-2017 31-May-2017
2 01-Jan-2017 31-Sep-2017

I want to convert the above to below.

ID FROM_DATE TO_DATE
1 01-Jan-2017 31-Jan-2017
1 01-Feb-2017 28-Feb-2017
1 01-Mar-2017 31-Mar-2017
1 01-Apr-2017 30-Apr-2017
1 01-May-2017 31-May-2017
1 01-Jun-2017 30-Jun-2017
2 01-Jan-2017 31-Jan-2017

and so on..

Has anyone implemented this and any tips on how to implement this quickly. Thanks.