Function to generate list of dates
<p>How to generate a list of all dates between several years?</p>

<p>This is needed to calculate depreciation for each day or month or year by filtering such a table by date and applying daily (monthly) depreciation.</p>