Public Property DayOfYear As Long
(read-only)

  Property Description  
    Description The day of the year 1-366  
    Remarks

Throws:
If the type is not one of the following
    DTType_dateTime
    DTType_date

 
    Example

Code
Dim dt As New LtXmlComLib16.DateTime

dt.SetDate 2002, 2, 2
Debug.Print "Day of week = " & dt.DayOfWeek & " Day of year = " & dt.DayOfYear

dt.SetDate 2000, 12, 31
Debug.Print "Day of week = " & dt.DayOfWeek & " Day of year = " & dt.DayOfYear

Output
Day of week = 2 Day of year = 365
Day of week = 0 Day of year = 366