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.Format Date in yyyyMMdd using JavaScript<blockquote><cite>gouthamgou says:</cite> <pre><code class="js keyword">if</code> <code class="js plain">((input.value.length == 2 || input.value.length == 5) &amp;&amp; keyCode != 8) {</code></pre> </blockquote> <p>&nbsp;Change the above line with the below.</p> <pre class="brush: js">if ((input.value.length == 4 || input.value.length == 7) &amp;&amp; keyCode != 8) {</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/633664/Format-Date-in-yyyyMMdd-using-JavaScript/https://www.aspforums.net:443/Threads/633664/Format-Date-in-yyyyMMdd-using-JavaScript/Mon, 19 Nov 2018 04:41:09 GMT