It looks like you're new here. Sign in or register to get started.
NoOfDay := MyDate - 311206D + 365;
CALCDATE('<CY>',TODAY)
Year := DATE2DMY(Date, 3) + 2000; IsLeapYear := (Year MOD 4 = 0) AND ((Year MOD 100 <> 0) OR (Year MOD 400 = 0));
// Calculates the Number of Days that have occured since the start of the year NumDays := MyDate - CALCDATE('-CY', TODAY) + 1;
Answers
If you need the end of the fiscal year instead, Function FindEndOfFiscalYear in Codeunit 8 AccSchedManagement will provide this.
will return the last day of the year.
You can evaluate this with :
Don't have to worry about leap years.