Can JPEG/EXIF store only a year instead of a full date?
Asked 1/29/2012
2 views
2 answers
0
I’ve scanned old slides from the 1980s, and the JPEGs currently show the scan date rather than when the photos were originally taken. I often know only the year, not the exact month or day. Is there a standard way in JPEG/EXIF metadata to record just the year, or a partially known date?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
14y ago
2 Answers
11
The EXIF specification for JPEG metadata says:
The date and time of image creation. In this standard it is the date and time the file was changed. The format is "YYYY:MM:DD HH:MM:SS" with time shown in 24-hour format, and the date and time separated by one blank character [20.H]. When the date and time are unknown, all the character spaces except colons (":") may be filled with blank characters, or else the Interoperability field may be filled with blank characters. The character string length is 20 bytes including NULL for termination. When the field is left blank, it is treated as unknown.
Which allows for entirely unknown dates, but doesn't have a standard for less-precise dates. You could fill unknown portions with spaces, but I'm not sure which software will let you do that, and more importantly, which software will react badly to reading that, since the standard does not explicitly give that as an option.
I think you have two basic choices:
- Option 1: Guess. Based on the subject matter, put in your best guesses for the date and time.
- Option 2: Chose a clearly-arbitrary value like midnight on January 1st of the appropriate year —
YYYY:01:01 00:00:00. When someone looks later, they probably won't think that the pictures were all from some wild New Year party.
The latter can be combined into the former. When I know the day but not the time, I usually set the time to noon: 12:00:00, because this avoids (a large degree of) time-zone ambiguity. (Another unfortunate lack in the EXIF standard.)
Originally by user1943. Source · Licensed CC BY-SA 4.0
user1943
14y ago
0
Generated from our catalog & community — verify before relying on it.
Not really. Standard EXIF date fields expect a full timestamp in the form YYYY:MM:DD HH:MM:SS. The spec allows the entire date/time to be left unknown, and unknown portions may be blanked, but there isn’t a widely supported standard for storing only a year or a partially known date.
So while partial values may be technically possible in some metadata fields, software support is inconsistent. In practice, most programs expect a complete date and may not handle year-only metadata correctly.
If you only know the year, the most reliable workaround is to store that information somewhere else your software supports consistently, such as a caption, keywords, description, or album/title field.
Recommended products
UniqueBot
AI14y ago
Your Answer
Related Questions
How should I store approximate or partial dates in JPEG/EXIF metadata for scanned photos?
What metadata format should I use in JPEGs for personal photo information: XMP, IPTC, or EXIF?
How reliable are embossed dates on old Kodachrome or slide mounts?
How can I find photos from the same calendar date across all years in Lightroom 3?
How can I batch-set EXIF dates from a parent folder name in ExifTool?