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.Display First and Last selected Date using jQuery MultiDatesPicker plugin<p>Hey <a class="username" rel="nauna"> nauna</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;link rel=&#34;stylesheet&#34; href=&#34;https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.css&#34; /&gt; &lt;link rel=&#34;stylesheet&#34; href=&#34;https://code.jquery.com/ui/1.12.1/themes/pepper-grinder/jquery-ui.css&#34; /&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://code.jquery.com/ui/1.12.1/jquery-ui.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#39;[id*=txtMultiDatePicker]&#39;).multiDatesPicker({ dateFormat: &#39;dd/M&#39; }); }); &lt;/script&gt; Date: &lt;asp:TextBox ID=&#34;txtMultiDatePicker&#34; runat=&#34;server&#34; /&gt; &lt;asp:Button ID=&#34;Button1&#34; Text=&#34;Save&#34; runat=&#34;server&#34; OnClick=&#34;Save&#34; /&gt;</pre> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Save(object sender, EventArgs e) { string Startdate = txtMultiDatePicker.Text.Split(&#39;,&#39;)[0]; string Enddate = txtMultiDatePicker.Text.Split(&#39;,&#39;)[txtMultiDatePicker.Text.Split().Length - 1]; ClientScript.RegisterClientScriptBlock(this.GetType(), &#34;&#34;, &#34;alert(&#39;Selected Dates are : &#34; + Startdate + &#34; to &#34; + Enddate + &#34;&#39;)&#34;, true); }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Save(ByVal sender As Object, ByVal e As EventArgs) Dim Startdate As String = txtMultiDatePicker.Text.Split(&#34;,&#34;c)(0) Dim Enddate As String = txtMultiDatePicker.Text.Split(&#34;,&#34;c)(txtMultiDatePicker.Text.Split().Length - 1) ClientScript.RegisterClientScriptBlock(Me.GetType(), &#34;&#34;, &#34;alert(&#39;Selected Dates are : &#34; &amp; Startdate &amp; &#34; to &#34; &amp; Enddate &amp; &#34;&#39;)&#34;, True) End Sub</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/wyMYBve.gif" alt="" width="459" height="366" /></p>https://www.aspforums.net:443/Threads/157081/Display-First-and-Last-selected-Date-using-jQuery-MultiDatesPicker-plugin/https://www.aspforums.net:443/Threads/157081/Display-First-and-Last-selected-Date-using-jQuery-MultiDatesPicker-plugin/Wed, 26 Dec 2018 00:37:42 GMT