System.Globalization.Calendar.GetDayOfYear C# (CSharp) Method