I've got a short script that allows a user to enter a date. I want to convert this date to *something* so I can compare it to mtimes of a bunch of files. If the mtime of the file is within 7 days of the user-entered date, I'll do some processing. What I can't figure out is how to convert a user-entered date into the same format as mtime, so I can compare the two. Can anyone point me in the right direction?