Date.DayOfYear : Date « System « VB.Net by API






Date.DayOfYear

  
Imports System

Public Class MainClass

    Shared Sub Main()
        Dim dteData As Date

        'Get the current date and time
        dteData = Now

        'Display the various properties
        System.Console.WriteLine("Month: " & dteData.Month)
        System.Console.WriteLine("Day: " & dteData.Day)
        System.Console.WriteLine("Year: " & dteData.Year)
        System.Console.WriteLine("Hour: " & dteData.Hour)
        System.Console.WriteLine("Minute: " & dteData.Minute)
        System.Console.WriteLine("Second: " & dteData.Second)
        System.Console.WriteLine("Day of week: " & dteData.DayOfWeek)
        System.Console.WriteLine("Day of year: " & dteData.DayOfYear)

    End Sub
End Class

   
    
  








Related examples in the same category

1.New Date(Int year, Int month, Int day)
2.New Date(Int year, Int month, Int day, Int hour, Int minute)
3.Date.AddDays
4.Date.AddMilliseconds
5.Date.AddMonths
6.Date.AddYears
7.Date.Millisecond
8.Date.Parse
9.Date.ToLongDateString
10.Date.ToLongTimeString
11.Date.ToOADate
12.Date.ToShortDateString
13.Date.ToShortTimeString
14.Date.ToString
15.Date.ToUniversalTime
16.Date.op_Subtraction