Ver originalmysql> select date_sub(str_to_date('01-01-2010','%d-%m-%Y'),interval 1 day) as fecha;+------------+| fecha |+------------+| 2009-12-31 |+------------+1 row in set (0.01 sec)