I am trying to extract the "date taken" metadata from a Nikon RAW file (.nef) **without **converting it to an image file (.png, .jpg, .webp, .etc.). I can hover a mouse over a raw file and windows pops up an info box with the required data, so it must be there in some format, and I would think it should be accessible without adding a 3rd party codec or library.
Virtually every "solution" to the problem is retrieving the date taken from an image file like a jpg using propertyitems. this is NOT what I need. I need to extract from the raw .nef file. I haven't yet found a solution. Th closes I got was finding a file specification for the .nef file, but I can't seem to translate into anything that works. Here is a link to that spec. https://exiftool.org/TagNames/Nikon.html
exiftoolis your friend. Here I tell it to list all the tags that contain the word"date":Output
If you want
exiftoolto tell you the variable name you should use, add the-Soption:Output
Then, if you decide the field/tag you want is
DateTimeOriginal, you will know that you need to run:Output
Output
Other formats, such as pure numbers without tag names are also possible:
Output