To get the EXIF DateTime tag, use the Exif operator. The ID of the DateTime field is "306" (these IDs are listed int he ThumbNailer help file). So, the TN expression to get the date/time out of the source file, on the source page is:
Code:
&Exif(srcFile, 306)
And that will print something like "2000:12:11 18:49:48"
The EXIF DateTime is stored in this format: YYYY:MM:DD HH:MM:SS
Getting that into the format you want will take a little work. This should do it:
Code:
&VarSet("EXIFDT", Exif(srcFile, 306))
&VarSet("EXIFYear", Left(EXIFDT, 4))
&VarSet("EXIFMonth", Mid(EXIFDT, 2, 5))
&VarSet("EXIFDay", Mid(EXIFDT, 2, 8))
&VarSet("EXIFHour", Mid(EXIFDT, 2, 11))
&VarSet("EXIFHourConv", If(Grtr(EXIFHour,12), Sub(EXIFHour, 12), EXIFHour))
&T(EXIFMonth)/&T(EXIFDay)/&T(EXIFYear) - &T(EXIFHourConv):&Mid(EXIFDT, 5, 14) &If(Grtr(EXIFHour,12), "PM", "AM")
You can just copy that to your source page template, anywhere you want to output the EXIF time.
In case you want to know, here's how that works...
First line copies the EXIF date/time to a temporary variable.
Second line extracts the year digits from that temporary variable.
Third line extracts the Month. Fourth line extracts the Day. Fifth line extracts the hour.
Sixth line looks at the hour and subtracts 12, if the hour is greater than 12. Stores that in another temporary variable.
The last line outputs the year parts, in the standard US order. Then it outputs the converted hour, then the minutes and seconds, then looks at the original hour to choose between AM or PM.