title: Getting "Taken Date" of a photo instead of "Modified Date" with PHP exif_read_data
body: <p>I'm retrieving the creation date from a photo with exif_read_data PHP function (see the code below.) The dates retrieved from photos that haven't been modified return "Date Taken". Those that have been modified - "Date Modified". Is there a way to get the date a photo was taken, ignoring the "Date Modified" field?</p>
  
  <pre><code>$exif_data = exif_read_data ($filename);
  if (!empty($exif_data['DateTime'])) {
      $exif_date = $exif_data['DateTime'];
  }
  </code></pre>
  
  <p>Thank you.</p>
  
  <p>Edit: I think $exif_data['DateTime'] uses the first available date field. Since unmodified images had the same value for "Date Modified" and "Date Taken" it was always retrieving "Date Modified" in my case.</p>