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.Compare Date between Current and given Date using C# and VB.Net<p>Hi&nbsp;ps222,</p> <p>Refer below code.</p> <p><strong>C#</strong></p> <pre class="brush: csharp"> int result = DateTime.Compare(DateTime.Now, Convert.ToDateTime(&#34;05/31/2019&#34;));</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Dim result As Integer = DateTime.Compare(DateTime.Now, Convert.ToDateTime(&#34;05/31/2019&#34;))</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/160393/Compare-Date-between-Current-and-given-Date-using-C-and-VBNet/https://www.aspforums.net:443/Threads/160393/Compare-Date-between-Current-and-given-Date-using-C-and-VBNet/Tue, 19 Mar 2019 04:50:40 GMT