title: Amazon S3 object lifecycle configuration rule based on date
body: <p>From the <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-dg.pdf" rel="nofollow">Amazon S3 developer guide</a>:</p>
  
  <blockquote>
    <p>When using the Transition and Expiration actions, you can specify a
    date when the action will be taken.</p>
  </blockquote>
  
  <p>I saw a lot of example rules based on object age in the guide but I could not find any example that uses the date so I am a bit confused about the exact XML element to use and the date format.</p>
  
  <p>I guess it would be something like:</p>
  
  <pre><code>&lt;LifecycleConfiguration&gt;
      &lt;Rule&gt;
          &lt;ID&gt;Archive All Object After a Week&lt;/ID&gt;
          &lt;Prefix&gt;&lt;/Prefix&gt;
          &lt;Status&gt;Enabled&lt;/Status&gt;
          &lt;Transition&gt;
              &lt;Date&gt;2016/08/11&lt;/Date&gt;
              &lt;StorageClass&gt;GLACIER&lt;/StorageClass&gt;
          &lt;/Transition&gt;
      &lt;/Rule&gt;
  &lt;/LifecycleConfiguration&gt;
  </code></pre>
  
  <p>Anyone can throw some light on this?</p>