I am trying o check to see if a file on a server is the same as the file stored locally. To do this I am using the following code
FileTimeStamp= 2011-09-11
NewStamp= 1315699200000
OS= 2011-09-19
OldStamp= 1316390400000
Above are the log prints. I cannot compare the dates directly but the stamp numbers are different when they should not be. It IS the same file.
Where am i going wrong?
Thanks
Joe
EDIT:
I can see that the modified date is changed when it is downloaded but how would i check it any other way
B4X:
For i = 0 To Files.Length - 1
FileTimeStamp=DateTime.Date(Files(i).Timestamp)
DateTime.Date(Files(i).Timestamp
Log("FileTimeStamp= " & FileTimeStamp)
NewStamp=DateTime.DateParse(FileTimeStamp)
Log("NewStamp= " & NewStamp)
OS=DateTime.Date(File.LastModified(File.DirInternal & "/cats/", Files(i).Name))
OldStamp = DateTime.DateParse(OS)
Log("OldStamp= " & OldStamp)
FileTimeStamp= 2011-09-11
NewStamp= 1315699200000
OS= 2011-09-19
OldStamp= 1316390400000
Above are the log prints. I cannot compare the dates directly but the stamp numbers are different when they should not be. It IS the same file.
Where am i going wrong?
Thanks
Joe
EDIT:
I can see that the modified date is changed when it is downloaded but how would i check it any other way
Last edited: