title: how to find the next closest date (month/day/time) without specifying year
body: <p>I have a script that a user can setup a frequency as to when they want it to run. </p>
  
  <p>They specify</p>
  
  <ul>
  <li>The month they want it to run</li>
  <li>The day of the month</li>
  <li>The time (24 hour format)</li>
  </ul>
  
  <p>They do not specify the year, the script needs to find the next closest date that matches.</p>
  
  <p><strong>PHP</strong></p>
  
  <p>The way I propigate the dates is through an array of months the user chooses and I can output all the dates into a nice array</p>
  
  <pre><code>$scheduler_months = unserialize($row['scheduler_months']);
  foreach ($scheduler_months as $scheduler_month) {
      $next_date[] = $scheduler_month."/".$row['scheduler_date']." ".$row['scheduler_time'];
  }
  </code></pre>
  
  <p>which will out put </p>
  
  <pre><code>Array ( [0] =&gt; 2/28 12:00 [1] =&gt; 4/28 12:00 [2] =&gt; 12/28 12:00 )
  </code></pre>
  
  <p>So now at this point I need to figure out what the next closest date based on today as the starting point will be, obviously if the next closest date is in the next year it needs to be smart enough to figure that out. I just have no idea how to find the next closest date based on the dates in the array.</p>