We are using below line to get Last access date and time of the file.
DateTime dtLastAccesstime = File.GetLastAccessTime(sFilePath);
But we are facing strange problem, the above call itself modifies the Last access time. So effectively we are getting current time as last access time.
sFilePath
before this line of code? There's a good article by Raymond Chen with a non-exhaustive list of innocuous activities that update the last accessed time – Okechuku