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