in reply to How to compare two dates?

You could also reformat your dates into the YYYY/MM/DD (or YYYYMMDD) format and compare them directly with string comparison operators (or even numerical comparison operators if you chose YYYYMMDD).