julia> d1 = Dates.Date(2010,1,2)
2010-01-02
julia> d2 = Dates.Date(2008,12,31)
2008-12-31
julia> numdays = d1 - d2
367 days
julia> Dates.year(numdays)
ERROR: MethodError: no method matching +(::Day, ::Int64)
julia> Dates.year(Dates.value(numdays))
2
Note: This is not the same as DateDiff in VB (which only looks at the two years, not the months and days).