title: C++ - Compare date with current system date
body: <p>I have a date in tm format. how can I compare with the current system date. I just want to compare tm_year, tm_mon, tm_mday. </p>
  
  <pre><code>int second = atoi(dateinSecond.c_str());
  tm * ptm;
  ptm = gmtime ( second );
  </code></pre>
  
  <p>basically i have a collection of data which belongs to different date. So i want to filter data for the current date.</p>
  
  <p>Thanks,<br>
  syd</p>