How to get the date/time at which an image was taken using CCR EXIF?

delphi, exif

Solution

Try to use this (please note I haven't tested this, just verified the `DateTimeOriginal` tag against what returns the `DateTimeOriginal` property and they match).

uses
  CCR.Exif;

procedure ShowDateTimeOriginal(const FileName: string);
var
  ExifData: TExifData;
begin
  ExifData := TExifData.Create;
  try
    ExifData.LoadFromGraphic(FileName);
    ShowMessage(DateTimeToStr(ExifData.DateTimeOriginal));
  finally
    ExifData.Free;
  end;
end;

Problem

using CCR EXIF http://delphihaven.wordpress.com/ccr-exif/ how can I get the time at which an image was taken? (I am open to using something else, so long as I can use Delphi, but everyone says that CCR EXIF is best; I just can't find this in the sparse docs)

Original source