Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,104 questions

40,777 answers

573 users

How to print a DateTime array in VB.NET

1 Answer

0 votes
Imports System

Public Module Module1
	Public Sub Main()
		Dim dates = New DateTime() {New DateTime(2021, 3, 11), New DateTime(2021, 1, 17), 
			                        New DateTime(2021, 2, 10), New DateTime(2021, 3, 8),
									New DateTime(2021, 3, 9)}

        For Each dt As DateTime In dates
            Console.WriteLine(dt.ToString("dd/MM/yyyy"))
        Next
	End Sub
End Module




' run:
' 
' 
' 11/03/2021
' 17/01/2021
' 10/02/2021
' 08/03/2021
' 09/03/2021
'

 





answered Mar 11, 2021 by avibootz

Related questions

1 answer 142 views
1 answer 34 views
1 answer 40 views
3 answers 48 views
...