I have an app that checks for a new file on the internet. If the internet version is newer then the download takes place if not it is left. My problem is that i seem to be ab le to only check the files date not the time. So if i download a new file in the morning then i am unable to download a newer file that is placed ther in the afternoon because the timestamps seem to be the same.
This is the code I am using
Any suggestions?
This is the code I am using
B4X:
LocalFileStamp = DateTime.DateParse(DateTime.Date(File.LastModified(DeviceFolder & DeviceDirectory, ServerFileName)))
ServerFileStamp=DateTime.DateParse(DateTime.Date(Files(i).Timestamp))
If (LocalFileStamp<ServerFileStamp) Then
.....download
End If
Any suggestions?