ViewBag.model = bLL.GetModel((int)id); ViewBag.RecruitmentTime = ViewBag.model.RecruitmentTime.ToString("yyyy-MM-dd"); //格式化返回前台输出的时间 return View(); //返回界面