Find Unix File by Date or Time

I needed to find all files in my Unix directory that were created within a certain timeframe.

Here’s how to find all that were created on a set date:

find -type f -name “*” -newermt “2019-07-01” ! -newermt “2019-07-02” -ls

Here’s how to find within a time frame:

find -type f -name “*” -newermt “2019-07-01 00:00:00” ! -newermt “2019-07-01 08:00:00” -ls

It finds all files “newer than” the first value, but then excludes any files that are “newer than” the second value.