asp.netvb.netajaxcontroltoolkitmaskededitextender

Can I change default for MaskedEditExtender am/pm?


The MaskedEditExtender control that I am using is set up for a MaskType="DateTime" and the AcceptAMPM="true" but I need to know how a user can change the am/pm without having to type in A for AM and P for PM? Is there a way I can add arrows or something to this control so that it is more user-friendly when changing from AM to PM? My users aren't going to know that they need to type out the value for it to change.

 <asp:TextBox ID="txtDateTime" runat="server"></asp:TextBox>
      <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
       TargetControlID="txtDateTime" MaskType="DateTime" Mask="99/99/9999 99:99" 
       MessageValidatorTip="true" CultureName="en-US" ErrorTooltipEnabled="True"
       AcceptAMPM="true">
      </asp:MaskedEditExtender>

Solution

  • I don't believe there is any way to change the functionality, at least not without a significant amount of work. If you need something that's a little more flexible, I would suggest looking at a jQuery Timepicker.