function moveDaysFromDate($date, $days) { // date in yyyy-mm-dd format $tm = dates::date2tm($date) + $days * 3600 * 24; return date("Y-m-d", $tm); }