title: Uniformize date formats - how to?
body: <p>I have two sources of information and those sources have dates in different formats.</p>
  
  <p><strong>Source A</strong>
  <em>Wed, 17 Nov 2010 12:14:10 +0000</em> (from a rss feed)</p>
  
  <p><strong>Source B</strong>
  <em>YYYY-MM-DD HH:MM:SS</em> (from mysql datetime)</p>
  
  <p>Request:
  <strong>I would like to order them by date to retrieve only the last occurrences.</strong></p>
  
  <p>But, and to put it even more difficult, those that are stored into the database should have in consideration the TIME. Because several records could be created on the same day.</p>
  
  <p>I have control over the mysql output format to choose from.
  I don't have any control about the output coming from the rss feed.</p>
  
  <p>This doesn't seem to be an easy achievement, and I'm wondering:</p>
  
  <p>What could you suggest here?</p>
  
  <p><strong>Update:</strong> 
  I was thinking about: 
  Working source A like this:
  a) creating an array for months and the specific month number
  b) Retrive two chars after the first comma (or three if we count the space) (the day)
  c) Convert "Nov" to a number (by using the array previously created);
  d) Retrieve the 2010 (not sure how);
  e) Place the year on the left, add a - place the month, and a -, place the day, add 00:00:00</p>
  
  <p>At this time, they both will be equal and that could help...
  But, I feel really dummy about doing all this... :s Isn't there a smart way? :)</p>
  
  <p>Over - php(zend) / mysql</p>
  
  <p>Thanks a lot,
  MEM</p>