VB.net Program to Print Date and Time in ‘Day, Month Dd, Yyyy’ Format Using Format() Function

You are currently viewing 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

'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 . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply