I am trying to read the creation date (when it was shot) of a jpg image with imagemagick identify -verbose.
I have an example here which was shot on 2021-06-10. But I am getting the date when it was copied to my computer (imported with Shotwell from an iPhone [iOS 12.5.7])
You probably want to read the EXIF data if the image has them.
There are tools for that - usually even the file manager can read those - with the right tools installed.
You’d have to search because that is about the extent of my knowledge.