This is a migrated thread and some comments may be shown as answers.

MaskedEditExtender(Date & Time 24hrs format)

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
salvio
Top achievements
Rank 1
salvio asked on 24 Feb 2011, 01:50 PM
Hi,

Can u pls help how to display (Date & Time in 24hrs) in
Radtextbox using MaskedEditExtender... below are the code i already tried..pls correct it..or give me other solution.
<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" AcceptAMPM ="False"
 Mask ="99/99/9999 99:99" MaskType="DateTime"   TargetControlID="Rad_entry_date"> </asp:MaskedEditExtender>
                   <asp:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
ControlToValidate="Rad_entry_date" Display="Dynamic" EmptyValueMessage="Input Date and Time"
ErrorMessage="Invalid Time" InvalidValueMessage="Invalid Date and Time"
SetFocusOnError="True" ></asp:MaskedEditValidator>

Thanks..

1 Answer, 1 is accepted

Sort by
0
Vinkel
Top achievements
Rank 1
answered on 25 Feb 2011, 10:47 AM
Why not using telerick date input instead? No extra code and have datetime filter directly, check it here:
http://demos.telerik.com/aspnet-ajax/input/examples/raddateinput/firstlook/defaultcs.aspx

-J
Tags
General Discussions
Asked by
salvio
Top achievements
Rank 1
Answers by
Vinkel
Top achievements
Rank 1
Share this question
or