title: SSIS: Check all files modified date and move only those older than 2 weeks
body: <p>In my SSIS project I have foreach loop container which moves files from a source folder to archive folder using simple logic to "sort" the files to the correct folders (month and year) </p>
  
  <p>But before I move any files I have to check the last modified date and move them only if they are older than 2 weeks. So I guess I need some script task before executing the sequence container for moving files and do this check. I made use of System.IO.FileInfo and LastWriteTime but any examples will be of big help.</p>
  
  <p>Using: SQL Server 2012 / SQL Server Data tools Set 2010</p>
  
  <p>Any help and suggestions are appreciated! :)
  Thanks guys</p>