Re-implemented dateFormat filter for main controller.