Forum Discussion

DainiusA's avatar
DainiusA
Contributor
2 years ago

Compare file date with current date

Hello everyone,

 

I would like to compare a date of a modified file with a current date and log a certain message for whatever the result is.

Can anyone help me out with this one ?

2 Replies

  • Hello DainiusA - 

     

    What format is the file with the modified current date?

     

    I would suggest using a checkpoint which uses a dynamic variable to accomplish this.

     

    aqDatetime can be used to pull a current date to check against the value. The output can be formatted according to what format the expected date is.

     

    Please let me know additional questions you may have. 


    Emma

     

     

    • DainiusA's avatar
      DainiusA
      Contributor

      What format is the file with the modified current date?

       

      It is .ini extension.

       

      I would suggest using a checkpoint which uses a dynamic variable to accomplish this.

       

      Can you please give me and example ? I am quite novice at these kind of things