I have a code for looping days.this to make leaves. I want column signin and signout on attendance will filling automatically start at startdate and end at enddate.
If startdate is of type Date, why not just do,
@attendance.signin = @leafe.startdate+i @attendance.signout = @leafe.startdate+i