how to iterating days

后端 未结 2 1542
遥遥无期
遥遥无期 2021-01-29 09:15

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.



        
2条回答
  •  猫巷女王i
    2021-01-29 10:07

    If startdate is of type Date, why not just do,

    @attendance.signin = @leafe.startdate+i
    @attendance.signout = @leafe.startdate+i
    

提交回复
热议问题