Easy Language has the BarDateTime.Year function so I can write it like this:
Code: Select all
if bardatetime.year <> bardatetime[1].year then Begin
DayOfYearCounter = 1;
end else if bardatetime.Day <> bardatetime[1].Day then DayOfYearCounter += 1;
Thank you!