Basing a deletion process on the timestamp of a directory is not sensible.
The moment you delete a subdirectory it changes the timestamp of the immediate parent directory.
If the name of the directory contains the date, this is feasible. What is the full name of sample directory names and what format is the date?