AjaxControlToolkit 4.1.51116.0
MaskedEditExtender does not allow the time to be set. When the textbox loses focus the hour and minute are set to the two digit month and two digit day used in the date portion.
<asp:TextBox ID="txtDateTime1" runat="server"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="mskDateTime1" runat="server"
Mask="99/99/9999 99:99" MaskType="DateTime" TargetControlID="txtDateTime1"
UserTimeFormat="None" AcceptAMPM="false">
</ajaxToolkit:MaskedEditExtender>
Comments: The error is in AutoFormatTime function: ... if (this._MaskType == Sys.Extended.UI.MaskedEditType.DateTime) { var arr = this._SplitDateTime(ValueText); var time_arr = arr[1].split(" "); if (time_arr.length == 2) { ValueText = time_arr[0] + " " + time_arr[1]; } else { ValueText = arr[0]; } ... last line should be: ValueText = time_arr[0]
MaskedEditExtender does not allow the time to be set. When the textbox loses focus the hour and minute are set to the two digit month and two digit day used in the date portion.
<asp:TextBox ID="txtDateTime1" runat="server"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="mskDateTime1" runat="server"
Mask="99/99/9999 99:99" MaskType="DateTime" TargetControlID="txtDateTime1"
UserTimeFormat="None" AcceptAMPM="false">
</ajaxToolkit:MaskedEditExtender>
Comments: The error is in AutoFormatTime function: ... if (this._MaskType == Sys.Extended.UI.MaskedEditType.DateTime) { var arr = this._SplitDateTime(ValueText); var time_arr = arr[1].split(" "); if (time_arr.length == 2) { ValueText = time_arr[0] + " " + time_arr[1]; } else { ValueText = arr[0]; } ... last line should be: ValueText = time_arr[0]