Formatting dates in controllers.