title: How to extract only 'Day' value from full 'Date' string?
body: <p>I have an array of Date values in the format of <code>'Y-m-d'</code>. I want to loop over the array and only extract the day (<code>'d'</code>) of each member, but can't figure out to split it. Do I use substrings in some way?</p>
  
  <p>Put simply, I have <code>'2010-11-24'</code>, and I want to get just <code>'24'</code> from that. The problem being the day could be either single or double figures.</p>