Hello everyone,
 
I have datatable that contain data like this
 
- public Nullable<DateTime> LogInTime { get; set; }  
-       public Nullable<DateTime> LogOutTime { get; set; }  
- LogInTime = m.Field<DateTime?>("LogInTime"),  
-                   LogOutTime = m.Field<DateTime?>("LogOutTime")  
 
And here I have a Linq query for, if LogOutTime is existing null return 'Unknown' message.
 
- var logOutDate = (from A in logList select (A.LogOutTime.ToString() ?? "Unknown").ToString().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)).Distinct();  
 but getting empty string array in 'logOutDate' object.
 
 
How can I get Unknown messege if LogOutTime existing null value?