date time null is a common problem in EF, we can easily handle with this. if (pic.dbirthday != null) { bo.dbirthday = Convert.ToDateTime(pic.dbirthday.Value.Date.ToString("MM/dd/yyyy")); }
Work smarter, not harder.