1
Vote

Ajax Toolkit Masked Edit Extender DateTime AM/PM bug

description

I use an Ajax Toolkit Masked Edit Extender on a text field that is used to auto-complete a date/time field using a 12-hour clock format. Between the hours of 12.01 PM and 01.00 PM, the AJAX Masked Edit Extender incorrectly marks the time as AM instead of PM. At present this needs to remain in a 12 hour format for my client.

This is a known bug and I have seen threads but with no resolution:

http://connect.microsoft.com/VisualStudio/feedback/details/631916/asp-net-ajaxtoolkit-maskededitextender-defaults-to-am-only-when-system-time-is-pm

http://forums.asp.net/t/1649815.aspx/1?ASP+Net+AjaxToolkit+MaskedEditExtender+defaults+to+AM+only+when+system+time+is+between+12+1+PM


I have attempted to use the latest Ajax release but it had no effect. Also, I cannot do a manual workaround due to the nature of the system's operation.

I have tried to raise a support call with Microsoft Support directly but they say they cannot do this since the Ajax Control Toolkit only has community-based support.

Any help would be much appreciated.

Code Extract

<asp:TextBox ID="txtRequestDate" runat="server" CssClass="textBoxLarge" ></asp:TextBox>

<ajaxToolkit:MaskedEditExtender ID="meeRequestDate" runat="server" TargetControlID="txtRequestDate" Mask="99/99/9999 99:99" MaskType="DateTime" AcceptAMPM="true" MessageValidatorTip="false" AutoComplete="true" CultureName="en-US"/>

comments