When I save a file 'last saved' date time in a SQL database, I cannot compare with a future scan directly -
eg if( SavedLastAccessDate <> FileSavedDate
I have to do this: DateTime fileSavedDateTime = System.IO.File.getLastWriteTime(filepath); TimeSpan gap = fileSavedDateTime - SavedLastAccessDateTime; if (gap.Milliseconds > ) { do something - new save }
does this make sense, when I save the last access in msSQL it adds .001 of a millisecond!!
Is there a better way?