DateTime Subtract : DateTime « Date Time « VB.Net Tutorial






public class Test
   public Shared Sub Main
    Dim D As DateTime
    D = Now()

    Console.WriteLine(D.ToUniversalTime().GetType().Name)
    Console.WriteLine("UTC-LocalTime=" + D.ToUniversalTime().Subtract(D).ToString())
   End Sub
End class
DateTime
UTC-LocalTime=07:00:00








5.5.DateTime
5.5.1.Get Date from long integer
5.5.2.Get UniversalTime from DateTime
5.5.3.DateTime.Parse(12:00:00 PM)
5.5.4.DateTime parse date and time by DateTimeFormatInfo
5.5.5.DateTime Subtract
5.5.6.Get Hour from DateTime
5.5.7.Timing code block
5.5.8.Displays the total number of weeks in the current year.