Unfortunately, due to technical reasons, it's not easily possible to query the current date from Tcl scripting in the openMSX installation.
But you can easily generate a screenshot (and then look at the file date) with a custom path and ROM name. For example: bind F6 {screenshot [utils::get_next_numbered_filename /tmp "[guess_title] " ".png"]}
where I hardcode my screenshot path to /tmp .
Thanks, I will try it. YES the path will be the same. We integrated OpenMSX into Batocera.Linux distribution and the screenshots folder is the same for all systems.