Skip to content

Instantly share code, notes, and snippets.

@shaik2many
Created July 22, 2016 18:11
Show Gist options
  • Save shaik2many/ae368f51756869cf89f69d430437927f to your computer and use it in GitHub Desktop.
Save shaik2many/ae368f51756869cf89f69d430437927f to your computer and use it in GitHub Desktop.
public string function getModifiedDate(string filepath) {
var absPath = ExpandPath( "./") & filepath;
if(!fileExists(absPath)) {
WriteLog(type="Error", file="tpc", text="File does not exists: "&absPath);
return 0;
}
return dateTimeFormat(GetFileInfo(absPath).LastModified, "yymmddHHnnss", "GMT");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment