title: how to check entered date should be greater than system date in vb.net
body: <p>heres the problem, i pass a date to function in the following format: mm/dd/yyyy.
  when i pass the date as 02/02/2010 to the function it always returns true but i have put the condition that if date is less than system date it should return false but still it returns true for dates entered less than system date.heres the function.</p>
  
  <pre><code>Private Function expiryvalidate(ByVal exp As String) As Boolean
      Dim ee As String
      ee = Format(CDate(exp), "MM/dd/yyyy")
      Dim dd As String = Format(DateTime.Now, "MM/dd/yyyy")
      If ee &lt;&gt; "0" Then
  
          If ee &lt; dd Or ee = dd Then
              Return False
          Else
              Return True
  
          End If
      Else
          Return True
      End If
  End Function
  </code></pre>