title: compare two dates time hours and minutes (not secs)?
body: <p>This is may be silly question. But I am missing logic here. I have to compare dates with date time with hours and minutes (not with seconds).</p>
  
  <p>IF first field time is older then second field execute condition</p>
  
  <p>right now I am doing <code>if (Convert.ToDateTime(newItem["Modified"]) &lt;     Convert.ToDateTime(properties.ListItem["Modified"]))</code> </p>
  
  <p>example <code>if("02/12/2015 11:58" &lt; "02/12/2015 12:01")</code> then execute condition. </p>