title: How to compare two persian date to find out which one is greater?
body: <p>I want to compare two persian dates to find out which one is greater, I use this function :</p>
  
  <pre><code>public static List&lt;MatchDrawHistory&gt; GetAllMatchDrawHistory(string startDate, string endDate) 
  {
      using (var db= new ReceiveSendEntitiesV5())
      {
          var matchDrawList = db.MatchDrawHistories.Where(x =&gt; String.CompareOrdinal(x.DrawStartDate,startDate)&gt;=0 &amp;&amp; String.CompareOrdinal(x.DrawEndDate , endDate) &lt;=0).ToList();
          return matchDrawList;
      }
  }
  </code></pre>
  
  <p>but it does not work, how can I do it?</p>
  
  <p>EDIT:  <code>DrawStartDate</code> and <code>DrawStartDate</code> are <code>nvarchar(20)</code> in <code>DataBase</code>, and these are persian date  not gregorian date</p>