Bienvenido al foro.
Te faltó usar
strtotime:
Código PHP:
Ver original<?php
$fecha = "2013-10-19";
echo $ano . "-";
echo $mes . "-";
echo $dia;
Porque date espera el formato de la fecha en timestamp y tu le pasas es un string. strtotime() te lo pasa a timestamp.