Abhilash J A

Abhilash J A

  • 502
  • 2.4k
  • 597.2k

datetime error in C#

Nov 9 2016 4:50 AM
Hello everyone,
Here LogInTime and LogOutTime are datetime datatype. How to solve this error?
  1. AccessDate = (DateTime.TryParse(x.LogOutTime, out parsed)) ? parsed.ToShortDateString() : "Unknown",  
  2.       AccessTimeFrame = (DateTime.TryParse(x.LogOutTime, out parsed)) ? parsed.ToShortTimeString() : "Unknown",  

Answers (4)