I am facing one problem in c# datetime i have trying more than time. it\'s not giving a problem solution. so give me one solution.
var accommodationcategoryList
Try this:
if(item.logout.HasValue) { item.logoutTime = item.logout.Value; }