Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 517 Bytes
' Visual Basic .NET Document
Option Strict On
Module Example
Public Sub Main()
' <Snippet4>
Dim thisDay As DayOfWeek = DayOfWeek.Monday
Dim formatStrings() As String = {"G", "F", "D", "X"}
For Each formatString As String In formatStrings
Console.WriteLine(thisDay.ToString(formatString))
Next
' The example displays the following output:
' Monday
' Monday
' 1
' 00000001
' </Snippet4>
End Sub
End Module