in reply to Get the date (MySQL style) for X days ago
use Date::Manip; print UnixDate("56 days ago", "%Y-%m-%d\n"); [download]