Name of newest folder

I have the date of a the newest created folder but struggling to get the name -

maximum of creation times of (folders of folder “usr/local/McAfee/AntiMalware/dats/”)

The name of the folder will return the dat version. Anyone help ?

ok i think i have it …

maximum of ((names of (folders of folders “usr/local/McAfee/AntiMalware/dats/”)) as version)

Thats an interesting usage, note that if any name isn’t all numbers then its going to have an issue converting it to a version.