title: define variable in repeater?
body: <p>I like to handle and compare a lot of date times in my repeater even I have to work more than one time with the same.</p>
  
  <p>It's a bit ugly, to cast everywhere the <code>Eval("MyDate")</code> like <code>((DateTime)Eval("MyDate"))</code> to substract 2 datetimes or to compare it, even if you have to do this more than in one operation.</p>
  
  <p>I thought of saving all the evals in a var at start of the repeater?</p>
  
  <pre><code>DateTime mydt1 = Eval("myDate");
  DateTime mydt2 = Eval("mydate");
  </code></pre>
  
  <p>after that, it's easy to do any operations in the whole repeater. Hope you understand my idea. Is this possible? I tried short but everytime errors.</p>
  
  <pre><code>mydt1 - mydt2....
  </code></pre>
  
  <p>Thank you and best regards.</p>