Redate folderdate based on newest/oldest file

It is fairly regular occurrence that folderdates are being changed (to current date), for no-matter-what reason.
I'd like to change it folderdate back again to the previous date, i.e. according to the 'newest' filedate in those folders.

Example
folderxyz (original) date: 13-01-2010
newest file in that folder is: file-abc.exe dated 13-01-2010

If I add a file or I move the folder to another location folderdate is changed, which is basically correct, but sometimes not desired (when sorting on folderdate is necessary).

Vainly searched on Internet for any 'attribute changes' that cud do this, i.e. redating folderdate based on newest file in that folder and (if possible/applicable) do this for all subfolders.
Also it would be nice to do this for a number of folders simultaneously.

I think TotalCommand has some add on or whatever, totalcmd.net/plugring/SetFolderDate.html
//
SetFolderDate 1.5
Set timestamp of folders and archives from newest/oldest file inside. Set timestamp of files from filename or metadata.
//

Would something similar be possible with Directory Opus?

Thanks!

You could do it using a script, but there's no simple built-in command which will do it.

IMO, it is futile to worry about folder dates as they as so fragile. Add, remove or rename anything below the folder and the date will be 'wrong' again.

Okay, but in some cases for me they are indeed important.
Else I would not have spent half a day on Internet searching and trying out a number of these attrib. changers.