DAYSINAYEAR

DAYSINAYEAR(year)
Returns the number of days in a year.

yearThe year

REMARKS
* The equivalent Excel formula is Number of days in a particular year

 A
1??

Public Function DAYSINAYEAR( _ 
         ByVal iYear As Integer) _
         As Integer

   DAYSINAYEAR = VBA.DateSerial(iYear + 1, 1, 1) - VBA.DateSerial(iYear, 1, 1)
End Function

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext