How can I do From Date to To Date for generate the attendance for one month?

gmsfzllcgmsfzllc Member Posts: 12
Dear All,

I want to generate attendance date for one month for every employee but I have done for one day for every employee.

How can I do From Date to To Date for generate the attendance for one month?

For your reference below are screenshots.

Thanks,
AM



1.png 10.3K
2.png 35.4K
3.png 54.1K
4.png 98.3K

Answers

  • hawkeyehawkeye Member Posts: 51
    Something like this?

    FromDate := DMY2DATE(1,DATE2DMY(RefDate,2),DATE2DMY(RefDate,3));
    ToDate := Calcdate('1M-1D',FromDate);
  • ondercinondercin Member Posts: 15
    You are inserting a record "EmployeeAttendance" and always using AttendanceDate which I am guessing is your "Date From"


  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    MonthStart := CALCDATE('<-CM>', SomeDate);
    MonthEnd := CALCDATE('<CM>', SomeDate);
    
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.