Change date format in controllers