Liquid XML Data Binder (C++, Java, VB6) / Reference / Visual Basic 6 / Reference / DateTime / VB6 DayOfYear - DateTime
In This Topic
    VB6 DayOfYear - DateTime
    In This Topic

    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 LtXmlComLib20.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