Well, you basically want the file on the user's computer to be the same as on the server, right? I don't really think you need to check the date, because if their file is more recent than yours, you've got problems. Otherwise, you can just update it.
So just check to see if the files are the same; if not, update.