On the Mac (Monterey), in Automator, I have created a Service to output the current date-time in ISO format:
I have combined it with a keyboard shortcut:
It works well in all Mac apps. Unfortunately, it does not work in my Windows VM: I am running Windows 10 in a Parallels VM in COHERENCE...