ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Accept only MMddyyyy format in TextBox from keyboard input using jQueryHi @kavithav,<br />Please try the following<br /><br /><a href = 'link(Threads/130849/Date-TextBox-validation-Allow-only-digits-and-slash-using-JavaScript-or-jQuery/)'>Date TextBox validation: Allow only digits and slash using JavaScript or jQuery</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/Tue, 20 Nov 2018 22:44:18 GMTAccept only MMddyyyy format in TextBox from keyboard input using jQuery<p>it should not allow while typing itself</p>https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/Tue, 20 Nov 2018 22:53:44 GMTAccept only MMddyyyy format in TextBox from keyboard input using jQuery<p>Which date picker you are using?</p>https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/Wed, 21 Nov 2018 23:04:06 GMTAccept only MMddyyyy format in TextBox from keyboard input using jQuery<p>Hey <a class="username" rel="kavithav"> kavithav</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <div class="demo_block"> <pre class="brush: html">&lt;input type=&#34;text&#34; id=&#34;TextDate&#34; placeholder=&#34;MM/DD/YYYY&#34; maxlength=&#34;10&#34; /&gt; &lt;link type=&#34;text/css&#34; rel=&#34;stylesheet&#34; href=&#34;https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css&#34;&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://code.jquery.com/jquery-1.12.4.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://code.jquery.com/ui/1.12.1/jquery-ui.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#34;#TextDate&#34;).datepicker(); $(&#34;#TextDate&#34;).on(&#39;keydown&#39;, function (e) { IsNumeric(this, e.keyCode); }); var isShift = false; var seperator = &#34;/&#34;; function IsNumeric(input, keyCode) { if (keyCode == 16) { isShift = true; } //Allow only Numeric Keys. if (((keyCode &gt;= 48 &amp;&amp; keyCode &lt;= 57) || keyCode == 8 || keyCode &lt;= 37 || keyCode &lt;= 39 || (keyCode &gt;= 96 &amp;&amp; keyCode &lt;= 105)) &amp;&amp; isShift == false) { if ((input.value.length == 2 || input.value.length == 5) &amp;&amp; keyCode != 8) { input.value += seperator; } return true; } else { return false; } }; }); &lt;/script&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/https://www.aspforums.net:443/Threads/192344/Accept-only-MMddyyyy-format-in-TextBox-from-keyboard-input-using-jQuery/Thu, 22 Nov 2018 00:56:26 GMT