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






Date.AddMilliseconds

  
Public Class Tester
    Public Shared Sub Main
        
        Dim rightNow As Date = Now

        Console.WriteLine("RightNow: " & rightNow.ToString)

        ' ----- Add time values.
        Console.WriteLine("RightNow.AddHours(5): " & rightNow.AddHours(5))
        Console.WriteLine("RightNow.AddMinutes(6): " & rightNow.AddMinutes(6))
        Console.WriteLine("RightNow.AddSeconds(7): " & rightNow.AddSeconds(7))
        Console.WriteLine("RightNow.AddMilliseconds(8000): " & rightNow.AddMilliseconds(8000))
    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.AddMonths
5.Date.AddYears
6.Date.DayOfYear
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