Search code examples
basic4android

get timestamp (date and time) from sd card file


Hello out there in B4A world! I'm trying to retrieve the timestamp from a file on the sd card. The function 'files' doesn't have a timestamp method but I see the usage of things like file timestamp in ftp operations. What am I missing?! Thanks


Solution

  • You can use File.LastModified to get the timestamp. I think that this method was added in B4A v1.5 or v1.6.