linux delete files older than specific date

C++
find /path ! -newermt "YYYY-MM-DD HH:MM:SS" | xargs rm -rf

Source

Also in C++: