Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| using System; | |
| public class Example | |
| { | |
| public static void Main() | |
| { | |
| // <Snippet4> | |
| DayOfWeek thisDay = DayOfWeek.Monday; | |
| string[] formatStrings = {"G", "F", "D", "X"}; | |
| foreach (string formatString in formatStrings) | |
| Console.WriteLine(thisDay.ToString(formatString)); | |
| // The example displays the following output: | |
| // Monday | |
| // Monday | |
| // 1 | |
| // 00000001 | |
| // </Snippet4> | |
| } | |
| } |