- Code: Select all
echo ( strtotime ("22 September 2006") - strtotime ("now") );
strtotime gives you the number of seconds since January 1 1970 00:00:00 GMT (UNIX Epoch)
As you see it gives you the difference between these two dates, so you can compare them using an if, and if the value is less than 0, it means the period expired.
bye!

