We help IT Professionals succeed at work.

File DateTime comparison.

MoonCalf
MoonCalf asked
on
Hi.

I've got the last accessed date/time from a list of files and converted them to TDateTime.  Now I want to be able to say..

   if DateTime of File < Now-2weeks then do stuff..

How can I do this?

Thanks in advance,

MoonCalf.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2004
Commented:
if TDateTime of File < now - 14 the doStuff

Author

Commented:
Like, I feel stupid now.

Thanks,

MoonCalf.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.