Does anyone know of a plugin that can make a coupon that can have a expiration date set to X number of days from the date they visited the page or printed the coupon. Example you visit site on April 5, 2013 and the coupon would expire in 5 days, Coupon would read "Expires: April 10, 2013".
I've seen some that I can set the the date, but none to automatically generate the date of expiration base on current date + X number of days.
I know this code will create the date in the future.
<?php $future = mktime(0,0,0,date("m"),date("d")+14,date("Y")); $mydate = date("F j, Y", $future); echo $mydate; ?>
I hope someone out there that enjoys making plugins may be able to help if their are no plugins out yet to do this.