planetsim has summed it up... Search the forum, and you will find your answer, because during the past 2 weeks, this has come up numerous times... [man]strtotime()[/man] should be helpful to you too, if all of the dates you are comparing are after Jan1, 1970.