title: Extract month, day, and year from DateTime date
body: <p>I have a variable <code>$nowDate</code> holding the current date as a <a href="https://metacpan.org/pod/DateTime" rel="nofollow noreferrer"><code>DateTime</code></a> object.</p>
  
  <p>Now I need to pull the month, day and year from that variable and assign them to their own variables. How would I go about doing that?</p>
  
  <pre><code>my $nowDate = DateTime-&gt;now(time_zone =&gt; 'local');
  </code></pre>