开发者

ASPxDateEdit Change Header

Is there any way to modify the format of the calendar header of DateEdit control? Before upgrading to v.10.2.8.0 (I was using 10.1.6.0) the format of the calendar header was MMMM, YYYY (e.g. July, 2011). After upgrading, the format changed to YYYY MMMM (e.g. 2011 July).

Any help will be a开发者_运维技巧ppreciated. Thanks.


Here is the code used to format the calendar's Title text:

        TitleLabel.Text = ViewInfo.VisibleDate.ToString(IsRightToLeft ? "MMMM yyyy" : CultureInfo.CurrentCulture.DateTimeFormat.YearMonthPattern);

So, the only solution is to change the CultureInfo.CurrentCulture.DateTimeFormat.YearMonthPattern setting. This can be done within the page's InitializeCulture method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜