title: Check if file was modified after xx days in the past
body: <p>I am checking for the date modified in a file. I would like to test whether the file was modified after the <code>/d -3</code>. According to the <a href="http://ss64.com/nt/forfiles.html" rel="nofollow noreferrer">docs</a>, this will check if the file was modified <strong>before</strong> that date. I need to check if the file was modified <strong>after</strong> that date. The docs also state that I can specify a date. I might end up doing it this way though it would be a little more complicated to generate a date to check against which I would prefer to avoid if possible.
  How might I go about this?</p>
  
  <pre><code>forfiles /m Item_Lookup2.csv /d -3 &gt;nul 2&gt;nul &amp;&amp; (
    echo - updated
  
    goto :PROCESS_FILE
  ) || (
  
    echo - out of date
    set outdated="true"
  
    goto :CHECK_ERRORS
  )
  </code></pre>
  
  <p>I found this <a href="https://stackoverflow.com/a/9351526/3851647">in this answer</a></p>