Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| // <Snippet8> | |
| using System; | |
| using System.Globalization; | |
| using System.Threading; | |
| public class Example | |
| { | |
| public static void Main() | |
| { | |
| // Change current culture to fr-FR | |
| CultureInfo originalCulture = Thread.CurrentThread.CurrentCulture; | |
| Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR"); | |
| DateTime dateValue = new DateTime(2008, 6, 11); | |
| // Display the DayOfWeek string representation | |
| Console.WriteLine(dateValue.DayOfWeek.ToString()); | |
| // Restore original current culture | |
| Thread.CurrentThread.CurrentCulture = originalCulture; | |
| } | |
| } | |
| // The example displays the following output: | |
| // Wednesday | |
| // </Snippet8> |