I have 2 dates and a year. 1/1/23 and 4/4/27 and 2024, for example.
I need to know how many days in 2024 fall between those 2 dates.
In this example it's 366, but if they year were 2027, it would only be 95.
Any pointers on how to make this function?
Code: Select all
Function GetNumberOfDays(dteOne as Date, dteTwo as Date, strYear as String) as Integer
dim intToReturn as Integer
NO IDEA WHAT GOES HERE...
GetNumberOfDays = intToReturn
End Function