Skip to content

How to Check a Photo’s Date Taken with ExifTool

Use ExifTool to compare a JPEG, its byte-identical copy, and an export. Interpret capture times, UTC offsets, and filesystem dates.

By Sourabh6 min read

You’re building a timeline and find the same photo in two folders. One copy shows November 23 in the file browser. ExifTool says November 18. Which date should you put in your notes?

To check the date a photo records as its date taken, start with DateTimeOriginal. Read OffsetTimeOriginal alongside it if you need to compare that time with other records. Treat the file’s modification date as a separate observation. You can see how this works in the three JPEGs below.

Find the capture time and the filesystem time

Download the three practice JPEGs and unzip them into one folder. original.jpg is a generated reference JPEG with known tags. copy.jpg has the same bytes. export.jpg was generated from the reference with its embedded camera tags stripped.

ExifTool is a tool you run by typing a command in a terminal, such as PowerShell on Windows or Terminal on macOS. It can read metadata, which is information stored about a file or inside it. Use the ExifTool beginner guide if you need to install it.

Open your terminal in the folder containing the extracted JPEGs. Enter exiftool -ver to check that the command prints a version number. If Windows can’t find it and you downloaded the portable program, run the renamed exiftool.exe using its full path and keep its accompanying exiftool_files folder beside it.

Start with this read-only command. It asks for the three fields you need to tell these dates apart.

bash
exiftool -G1 -a -s -DateTimeOriginal -OffsetTimeOriginal -FileModifyDate original.jpg

Here’s what ExifTool 13.64 returned on macOS with filesystem times displayed in UTC.

text
[ExifIFD] DateTimeOriginal    2026:11:18 14:25:30
[ExifIFD] OffsetTimeOriginal  +05:30
[System]  FileModifyDate      2026:11:18 08:55:30+00:00

Read the bracketed label first. [ExifIFD] marks a group of fields stored inside this JPEG. [System] marks a value ExifTool read about the file from the operating system. In the command, -G1 includes those labels, -a shows duplicate tag names, and -s prints the short tag names you can reuse.

Scroll horizontally if needed to see the full table.

FieldWhat it tells you
DateTimeOriginalThe time recorded for the original exposure. Start here when you want the photo’s recorded date taken.
OffsetTimeOriginalHow far that recorded local time is ahead of or behind UTC. Use it to put the recorded time on a shared clock.
FileModifyDateThe last-modified time recorded by the filesystem for this copy. Keep it separate from the exposure time.

If you see CreateDate, read it as the EXIF digitization time. That can coincide with exposure on a digital camera. An embedded ModifyDate is another tag to record separately from the filesystem’s FileModifyDate. Phil Harvey’s ExifTool FAQ describes the embedded date fields and filesystem timestamps.

Selected values from the byte-identical copy in the exercise. The capture time is embedded in the JPEG. The file modification time comes from its filesystem entry.

Follow the same JPEG through a copy and an export

Now run the query across all three JPEGs. This time, include FileName so you can see which file each group of rows came from. The query also shows any EXIF digitization or modification dates present in the samples.

bash
exiftool -G1 -a -s -FileName -DateTimeOriginal -OffsetTimeOriginal -CreateDate -ModifyDate -FileModifyDate original.jpg copy.jpg export.jpg

The original gives you a local time and an offset

UTC stands for Coordinated Universal Time, a common time reference. The +05:30 offset means the recorded local clock was five hours and thirty minutes ahead of UTC. Subtract that from 14:25:30 to get 08:55:30 UTC on November 18, 2026. The filesystem time happens to match in the reference JPEG. The embedded time and its offset are enough to make the conversion even if the filesystem value changes.

Compare the copy’s timestamp and file hash

The copy reports the same embedded capture time and offset. Its filesystem modification time was November 23 at 09:11:00 UTC in the reference run. These filesystem dates were set for the exercise. Your archive tool may restore or reset them, and your workstation may display them in local time. The embedded tags and file hashes are the stable checks.

You can check whether the dates changed inside the JPEG by comparing file hashes. A hash is a short value calculated from the bytes of a file. On Windows, run this command in PowerShell.

powershell
Get-FileHash -Algorithm SHA256 original.jpg,copy.jpg

On macOS, use shasum -a 256 original.jpg copy.jpg. On Linux, use sha256sum original.jpg copy.jpg. In the practice download, the original and copy returned the SHA-256 below.

text
5ad22129d25987a0ff670240a0748a801edbf3f3cb554160808bba4135c0a121

The two matching hashes explain why the embedded values stayed the same. The JPEG bytes agree, including the capture tags. The later filesystem date describes the record for this copy. If you need to know exactly when someone copied it, look for another record of that event, such as a transfer log.

The export leaves the capture date unresolved

In this query, export.jpg shows a filename and filesystem modification time. The exposure time and offset are missing because the fixture was created with those fields stripped. If you see this in a real case, write down which fields you checked. An export or messaging app could have changed the metadata, and the missing fields alone leave the cause open.

If you need a broader check, ask ExifTool for all time tags in the image. The output may include other embedded groups or filesystem dates. Read the group and field name before deciding whether a value describes the original exposure.

bash
exiftool -G1 -a -s -time:all export.jpg

For this export, keep the filesystem date as a separate observation and leave the capture-time field unresolved. If you receive the export before the original, try to find a source image or another way to link the export to the same scene. A different file hash is expected when the export rewrites the JPEG, so hash comparison alone cannot establish whether it depicts the same event.

Selected output from ExifTool 13.64.

What if there’s a capture time but no offset?

Suppose an image contains a recorded time of 00:20 on November 19 with no offset. You can report that local value, but all you know about the offset is that it wasn’t recorded in the fields you checked. If a reliable record later establishes that the camera was using UTC+05:30, the equivalent would be 18:50 UTC on November 18. The date changes when you normalize across midnight, which can matter when sorting events around the same incident.

Conditional UTC conversion example.

If GPS date and time, a series of related photos, or a camera log supplies context, document why you tied it to this image. The workstation’s time zone describes how that workstation displays dates. On its own, it says little about the camera clock. Even an explicit offset tells you how to interpret the recorded clock value. Check independent records if you need to establish that the clock itself was correct.

If ExifTool doesn’t show the date you expected

Scroll horizontally if needed to see the full table.

What you seeWhat to check
The terminal can’t find ExifToolRun the version check first. Confirm the executable is installed or call it by its full path.
The terminal can’t find the JPEGCheck that you extracted the ZIP and opened the terminal in the folder containing the files. Match the filename, including .jpg.
The file browser and ExifTool show different datesCheck which field the file browser is showing. Compare its displayed time zone with the group and value in ExifTool.
Only a filesystem date appearsCheck all time tags, then record that the exposure time was unavailable in the fields you examined.

Put the source and the interpretation in the same note

For the practice image, a usable note would say: “The reference JPEG and its byte-identical copy record an embedded time of 14:25:30 on November 18, 2026, with an offset of +05:30. This converts to 08:55:30 UTC. The copy has a later filesystem modification time in the test environment. The export has no embedded capture time in the tags checked.”

Keep the raw tag values and groups alongside the UTC conversion and the file hash. That way, someone reading your timeline can tell which time came from the JPEG, which came from the filesystem, and which was corroborated by another record.