I was reading the blog post on date class
in the post, I saw the following code:
Dim difference As Double = RightDate.TotalSeconds - d.TotalSeconds Dim days As Integer Dim years As Integer Dim months As Integer Dim dateResult As New date dateResult.TotalSeconds = difference days = dateResult.Day - 1 years = dateResult.Year - 1904 months = dateResult.Month - 1 Dim result As New Dictionary result.Value(kDay) = days result.Value(kYear) = years result.Value(kMonth) = months Return result
My question is, to get years difference I see they are taking the current year and subtracting by 1904
years = dateResult.Year - 1904
Just curious, why is the value 1904 and not something else?