Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6003067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:04:08+00:00 2026-05-23T01:04:08+00:00

I am using maskedEditExtender control for getting date.. Code inside MaskedEditExtender is cc1:MaskedEditExtender ID=MaskedEditExtender1

  • 0

I am using maskedEditExtender control for getting date..

Code inside MaskedEditExtender is

cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="ui_txtRequestDateTime" ClearMaskOnLostFocus="false" Mask="99/99/9999 99:99" UserTimeFormat ="TwentyFourHour">

I need DateTime in MM/dd/yyyy hh:mm formate ,If i use calenderExtender control i can use Format=”MM/dd/yyyy” ,but here i couldt specify the format MM/dd/yyyy, its generally “99/99/9999 99:99” format, the 1st two 9’s for month, how to tell to user that they have to give month only, if i give value above 12, like 23,24 its showing exception..

Please give some idea..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:04:09+00:00Added an answer on May 23, 2026 at 1:04 am

    Use RegularExpression validator with your textbox as follows:

     <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
    
     <asp:RegularExpressionValidator ID="valRegDate" ValidationGroup="OrderAdd"
                            ControlToValidate="txtDate" runat="server" ErrorMessage="Please provide a valid date."
                            ForeColor="Red" ValidationExpression="^(((0?[1-9]|1[012])/(0?[1-9]|1\d|2[0-8])|(0?[13456789]|1[012])/(29|30)|(0?[13578]|1[02])/31)/(19|[2-9]\d)\d{2}|0?2/29/((19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$"></asp:RegularExpressionValidator>      
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database that contains a date and we are using the MaskedEditExtender
The MaskedEditExtender control that I am using is set up for a MaskType=DateTime and
I have text box to enter a phone number. I'm using AJAX MaskedEditExtender and
Is there a way to set Ajax MaskedEditExtender Mask by jquery secript. I'm using
Using online interfaces to a version control system is a nice way to have
I'm using a MaskedEditExtender to show users what format they should use to enter
Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database
I am using MaskedEditExtender for entering a datetime. I am unable to figure out
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Using SQL Server 2005 Leave Table ID StartDate EndDate 001 02/03/2010 02/03/2010 002 02/03/2010

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.