This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
GetFileDate
Hello World
GetFileDate returns a Date object containing the last modified date of a file or folder.
app.GetFileDate(
file
) →
JavaScript object:
Date
Example - Show /sdcard/ last modifies date
click to expand contents
function
OnStart
(
)
{
var
date
=
app
.
GetFileDate
(
"/sdcard/"
)
;
app
.
Alert
(
date
.
toLocaleString
(
)
)
;
}
Copy All
Run
String:
path to file (
“/absolute/...”
or
“relative/...”
)
loading