VB.Net program to print date and time in ‘day, month dd, yyyy’ format using Format() function
'VB.Net program to print date and time in
'"day, month dd, yyyy" format using Format() function.
Module Module1
Sub Main()
Dim strDate As String
Dim D As Date
D = Date.Now
strDate = Format(D, "Long Date")
Console.WriteLine(strDate)
End Sub
End Module
Output
Tuesday, November 24, 2020
Press any key to continue . . .
Table of Contents