Need help with comparing dates

Hello everyone.

I need to do the following:

  •      Get the system date
    
  •      Get the date from a field on a flat file
    
  •      If the date field on the flat file is more than 7 days older than the system date, do something
    

Can someone provide tips as to how to accomplish this (mainly how to do do the “If the date field on the flat file is more than 7 days older than the system date”) part?

Thanks.

Download PS Utilities

In the date folder there is a calculate date difference service