title: date +"%Y-%m-%d" in crontab
body: <p>If I put the following in <code>crontab -e</code>:</p>
  
  <pre><code>* * * * * date +"%Y-%m-%d" &gt; /home/apps/temp/env.txt
  </code></pre>
  
  <p>there is no <code>env.txt</code> created.</p>
  
  <p>If I change the above line to:</p>
  
  <pre><code>* * * * * date &gt; /home/apps/temp/env.txt
  </code></pre>
  
  <p><code>env.txt</code> is created properly.</p>
  
  <p>How can I format <code>date</code> in cron?</p>