DateTimeOffset format: dddd and CultureInfo("fr-fr")
using System;
using System.Globalization;
public class Test
{
public static void Main()
{
DateTimeOffset thisDate = new DateTimeOffset(2007, 6, 1, 6, 15, 0, DateTimeOffset.Now.Offset);
string weekdayName = thisDate.ToString("dddd", new CultureInfo("fr-fr"));
Console.WriteLine(weekdayName);
}
}
//vendredi
Related examples in the same category