Date in dd/mm/yyyy format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maliksleo
    New Member
    • Feb 2009
    • 115

    Date in dd/mm/yyyy format

    Hi
    i am using this ajex
    Code:
    <asp:TextBox ID="TextBox6" runat="server" Width="180px" ValidationGroup="MKE" />
            <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender6" runat="server"
                TargetControlID="TextBox6" 
                Mask="99/99/9999 99:99:99"
                MessageValidatorTip="true"
                OnFocusCssClass="MaskedEditFocus"
                OnInvalidCssClass="MaskedEditError"
                MaskType="DateTime"
                AcceptAMPM="True"
                ErrorTooltipEnabled="True" />
            <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator6" runat="server"
                ControlExtender="MaskedEditExtender6"
                ControlToValidate="TextBox6"
                IsValidEmpty="False"
                EmptyValueMessage="Date and time are required"
                InvalidValueMessage="Date and/or time is invalid"
                Display="Dynamic"
                TooltipMessage="Input a date and time"
                EmptyValueBlurredText="*"
                InvalidValueBlurredMessage="*"
                ValidationGroup="MKE" />
            <br />
        </div>
        <div class="demobottom" style="font-size: 9pt"></div>
    but i am unable to change the date format as "dd/mm/yyyy" please help me out.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Umm....I'm not sure what the problem is because right now your MaskedEditExten der is formatted "##/##/#### ##:##:##" which means that it could be treated as mm/dd/yyyy 99:99:99 or it could be treated as dd/mm/yyyy 99:99:99.

    What's the problem?

    Have you considered using a CalendarExtende r instead?

    Comment

    Working...