Comapring a systems local time with filetime

basically I have to compare the current system time to some filetime's

I have to only find files from the previous day (no further back than
the previous day)

can someone help me with the syntax