Mega Code Archive

 
Categories / VB.Net / Date Time
 

Create DateTime structure to the specified year, month, day, hour, minute, second, and millisecond

Imports System.Globalization Imports System.Text.RegularExpressions Imports System.Threading Module Example    Public Sub Main()         Dim date1 As New Date(2010, 8, 18, 16, 32, 18, 500)         Console.WriteLine(date1.ToString("M/dd/yyyy h:mm:ss.fff tt"))    End Sub End Module