Modification time of file / current date

Hello,

I try to do a folder mirroring task that’s running every day between 1am and 6 am.

I also try to make a relevance that will check if the modification time is different as the current date

I am able to get the current date :
Q: ((year of it as string & month of it as two digits & day_of_month of it as two digits) of current date)
A: 20190205

I am able to get the modification time of a file
Q: (modification time of it) of files "D:\folder\file.pdf"
A: Tue, 11 Jul 2017 08:07:31 +0100

But I can’t find a way to have a result looking like the current date ( yyyymmdd)

I will then compare both result, and If the result are different, then reapply the task.

How Can I get the modification time of a file ? (yyyymmdd)

Thanks for help

Edit :

Ok I found It :

Q: ((year of it as string & month of it as two digits & day_of_month of it as two digits) of date (local time zone) of modification time of it) of files "D:\folder\file.pdf"
A: 20170711

Just need to do the compare relevance now ^^

For info if someone was looking for the same thing:

Q: (unique value of (((year of it as string & month of it as two digits & day_of_month of it as two digits) of date (local time zone) of it) of (now))) = (unique value of (((year of it as string & month of it as two digits & day_of_month of it as two digits) of date (local time zone) of modification time of it) of files “D:\folder\file.pdf”))
A: False

1 Like