Please feel free to check out Developer Notes file. This one contains an explanation of the logic and the architectural design overview.
Example usage with expected results printed in console are presented below:
-
program.exe 01.01.2017 05.01.2017
- 01 - 05.01.2017
-
program.exe 01.01.2017 05.02.2017
- 01.01 - 05.02.2017
-
program.exe 01.01.2016 05.01.2017
- 01.01.2016 - 05.01.2017