4
Answers

datetime error in C#

Mani Kandan

Mani Kandan

8y
250
1
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)