Hello guys. I am currently facing an issue related to how to allocate the difference between some dates into specific years.
Let's assume the period below.
[TABLE="width: 500"]
<tbody>[TR]
[TD]start_date[/TD]
[TD]end_date[/TD]
[/TR]
[TR]
[TD]03-03-2015[/TD]
[TD]5-06-2017[/TD]
[/TR]
</tbody>[/TABLE]
Given this period, I would like to compute the days corresponding to each year: 2015, 2016 and 2017.
[TABLE="width: 500"]
<tbody>[TR]
[TD]2015[/TD]
[TD]2016[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It is possible to achieve this by not doing a nested if?
Thank you.
Let's assume the period below.
[TABLE="width: 500"]
<tbody>[TR]
[TD]start_date[/TD]
[TD]end_date[/TD]
[/TR]
[TR]
[TD]03-03-2015[/TD]
[TD]5-06-2017[/TD]
[/TR]
</tbody>[/TABLE]
Given this period, I would like to compute the days corresponding to each year: 2015, 2016 and 2017.
[TABLE="width: 500"]
<tbody>[TR]
[TD]2015[/TD]
[TD]2016[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It is possible to achieve this by not doing a nested if?
Thank you.