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