<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="txtDate" runat="server" ValidationGroup="DtVal"/>
<cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
CultureName="en-GB" TargetControlID="txtDate"
Mask="99/99/9999" MaskType="Date" AcceptNegative="None"/>
<cc1:MaskedEditValidator id="MaskedEditValidator1" runat="server"
ControlExtender="MaskedEditExtender1"
EmptyValueMessage="Please enter Date" InvalidValueMessage="Invalid Date"
ControlToValidate="txtDate" ValidationGroup="DtVal" />
Tweet
2 comments:
How to do the same with a calendar extender and masked edit extender.whenever i select the date from calendar ,it comes in MM/dd/yyyy format.But i want it in dd/MM/yyyy format.Please help.
I tried this but it not works for 01/01/0000 like date
Post a Comment