Do you mean date-time stamp in into the meta data or write the date and
time as a visible stamp onto the image?
I) For the former use exiftool (you can download and install this from):
https://exiftool.org/install.html#MacOS
Then google on how to do what you want to do. Exiftool is very potent
but not easy to determine the commands in some cases. But somebody out
there has figured it out.
II) For the later:
If it's a simple one-time thing for one or a few photos, you could open
them in preview and use markup to add a text field.
Otherwise, there are various watermarking tools such as Fotor . I have
not tried it. Google away.
--
“Markets can remain irrational longer than your can remain solvent.”
- John Maynard Keynes.