Change the Date Rage format shown in the RadzenWeekView

Hello, i have been able to change the HeaderFormat of RadzenWeekView but somehow not able to change the format of the date range displayed above header...

Even if my computer date format is set to yyyy-MM-dd but RadzenWeekView date ranges uses M/d/yy

Please refer image

Hi @cbug,

RadzenScheduler uses the current .NET culture to display this date. Here is the actual code: https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenWeekView.razor.cs#L81

Thank you so much...

i used following and it worked...

var host = builder.Build();

var culture = CultureInfo.CurrentCulture.Clone() as CultureInfo;

culture.DateTimeFormat.ShortDatePattern = DateTimeExtensions.DateFormat;
culture.DateTimeFormat.LongDatePattern = DateTimeExtensions.DateFormat;

CultureInfo.CurrentCulture = culture;
CultureInfo.CurrentUICulture = culture;

1 Like