herioppaokulloh
New Member
i am using the Microsoft Ajax Toolkit \[code\]CalendarExtender\[/code\] control, to add calendar drop-down functionality to a regular TextBox:\[code\]<asp:TextBox ID="edStartDate" runat="server" /><asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="edStartDate" />\[/code\]Which works fine for most client locales. It seems that the control does a server-request in order to convert a \[code\]DateTime\[/code\] into a localized \[code\]String\[/code\].For example, today (October 1st, 2012) displays fine in Arabic \[code\]15/11/33\[/code\]:
And also displays fine in Lower Sorbian \[code\]1. 10. 2012\[/code\]:
But some locales do not display properly in .NET \[code\]1////10////2012\[/code\]:
In this case i need some sort of \[code\]OnFormatDate\[/code\] event, that i can supply the correct localization of a date to a string. Which leads to my question:\[quote\] How to override AjaxToolkit CalendarExtender date to string conversion?\[/quote\]Note: Don't confuse the question with the example.



- i'm asking how to customize the conversion of a date to a string in a \[code\]CalendarExtender\[/code\]
- even if i'm not dealing with a bug in .NET, it doesn't change my question
- even if i'm not dealing with a \[code\]CalendarExtender\[/code\], i'm still asking the question