Find specific file date

hey,
i need to find a file in some path
and to get the date of it

its can do with relevance query?

q: (modification time of it) of file "C:\QnA\qna.exe"
A: Thu, 10 May 2018 08:35:16 +0100
T: 0.796 ms

q: (creation time of it) of file "C:\QnA\qna.exe"
A: Fri, 17 Mar 2017 20:54:08 +0100
T: 0.450 ms

2 Likes

hey, i need to check if its less then other date
like if this modification date file > from other date

@nicksberger

You can use > and < to do date comparisons.

date1 > date2 will report True if date1 is more recent than date2. Is there a particular piece of relevance you’re struggling with?

If you are looking for the syntax, here is an example:
q: (modification time of it) of file “C:\TEM\concatena.txt” < “Tue, 29 Oct 2019 12:06:01 +0100” as string as universal time
A: True

You may want to consider the “number of days” case as shown in the following example:
q: exists file (“c:\TEM\concatena.txt”) whose((now - modification time of it) > 30*day)
A: True

1 Like