title: How to use DateAdd in C#?
body: <p>I tried to convert VB to c#, in VB <b>DATEADD</b> Working in C# it gives an Error</p>
  
  <pre><code>DateTime viewPortStartDate = DateAdd("s", viewer.ViewPortLeft * m_dateRange, m_dtmMinDate);
  DateTime  viewPortEndDate = DateAdd("s", viewer.ViewPortWidth * m_dateRange, viewPortStartDate);
  </code></pre>