I was wondering if there was a build in function that could compare 2 dates and determine the number of days between them.
Otherwise would anyone be willing to post some code that accomplishes this? It would be ok to assume that all months have 31 days. I would like it if the parameters were as follows but they can be changed if it makes it any easier
ByVal Month1 as integer
ByVal Day1 as integer
ByVal Year1 as integer
ByVal Month2 as integer
ByVal Day2 as integer
ByVal Year2 as integer
The function would return an integer value representing the number of dayes between the two dates.
Assume already that Month1 Day1, Year1 comes first
Otherwise would anyone be willing to post some code that accomplishes this? It would be ok to assume that all months have 31 days. I would like it if the parameters were as follows but they can be changed if it makes it any easier
ByVal Month1 as integer
ByVal Day1 as integer
ByVal Year1 as integer
ByVal Month2 as integer
ByVal Day2 as integer
ByVal Year2 as integer
The function would return an integer value representing the number of dayes between the two dates.
Assume already that Month1 Day1, Year1 comes first