Corrected date format
Corrected changed the controler to remove error