I see your point about the if statement, thanks...
the problem is when I look at the file (its ntfs) the date on the file is for arguments sake Jan 9, the day it is modified. When I run the above code against the file it always returns January 10 or 1 day more than the file modification time shown by windows.