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.Set Date value in dd/MM/yyyy format in TextBox using ASP.Net AJAX CalendarExtender<p>Hi <a class="username" rel="nauna"> nauna</a>,</p> <p>You can't select multiple date in ajax calender, So select single date selection and assign to textbox.</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;ajaxtoolkit:ToolkitScriptManager runat=&#34;Server&#34; EnablePartialRendering=&#34;true&#34; ID=&#34;ScriptManager1&#34; /&gt; &lt;ajaxtoolkit:CalendarExtender ID=&#34;calendar1&#34; runat=&#34;Server&#34; BehaviorID=&#34;Calendar1&#34; TargetControlID=&#34;TextBox1&#34; OnClientDateSelectionChanged=&#34;OnDateSelection&#34; OnClientHidden=&#34;OnCalendarHidden&#34; /&gt; &lt;asp:TextBox ID=&#34;TextBox1&#34; runat=&#34;server&#34;&gt;&lt;/asp:TextBox&gt; &lt;asp:HiddenField ID=&#34;HiddenField1&#34; runat=&#34;server&#34; Value=&#34;&#34; /&gt; &lt;/form&gt; &lt;script type=&#34;text/javascript&#34;&gt; var tag1 = 1; function HideCalendar() { tag1 = 0; $find(&#34;Calendar1&#34;).hide(); } function OnDateSelection(ev) { var calendar1 = $find(&#34;Calendar1&#34;); var date = calendar1._selectedDate.format(&#34;dd/MM&#34;); var hfDate = $get(&#39;&lt;%=HiddenField1.ClientID %&gt;&#39;); if (hfDate.value.indexOf(date) == -1) { hfDate.value += date + &#34; - &#34;; } tag1 = 1; } function OnCalendarHidden(obj) { var calendar1 = $find(&#34;Calendar1&#34;); if (tag1 == 1) { calendar1.show(); } $get(&#39;&lt;%=TextBox1.ClientID %&gt;&#39;).value = $get(&#39;&lt;%=HiddenField1.ClientID %&gt;&#39;).value; HideCalendar(); } &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/Ru9ErJj.gif" alt="" width="244" height="307" /></p>https://www.aspforums.net:443/Threads/117123/Set-Date-value-in-ddMMyyyy-format-in-TextBox-using-ASPNet-AJAX-CalendarExtender/https://www.aspforums.net:443/Threads/117123/Set-Date-value-in-ddMMyyyy-format-in-TextBox-using-ASPNet-AJAX-CalendarExtender/Wed, 31 Oct 2018 02:18:58 GMT