title: Today's date, minus X days in shell script
body: <p>I need to create three variables, each for Year, Month, and Day for Today's date, minus X number of days.  For this question I'll choose a random amount of days: 222.</p>
  
  <p>So if:</p>
  
  <pre><code>TodayYear=`date +%Y`
  TodayMonth=`date +%m`
  TodayDay=`date +%d`
  </code></pre>
  
  <p>What I want is 222 days before this.</p>
  
  <pre><code>222days_before_TodayYear=???
  222days_before_TodayMonth=???
  222days_before_TodayDay=???
  </code></pre>
  
  <p>Edit: Need 222 <strong>working</strong> days instead 222 regular days.</p>