DateTime.UtcNow() : DateTime « System « VB.Net by API






DateTime.UtcNow()

  


Public Class MainClass

   Public Shared Sub Main()
        'Date Time examples
        Dim dteNow As Date = Now()
        Dim dteToday As Date = Today()
        Dim dteGMT As DateTime = DateTime.UtcNow()

        Console.WriteLine(dteNow)
        Console.WriteLine(dteToday)
        Console.WriteLine(dteGMT)
        

   End Sub
End Class

   
    
  








Related examples in the same category

1.New DateTime
2.DateTime.DayOfWeek
3.DateTime.IsLeapYear
4.DateTime.Second
5.DateTime.Subtract
6.DateTime.ToUniversalTime()
7.DateTime.Year