Maxxean Posted September 21, 2010 Share Posted September 21, 2010 Hello,BonjourSorry, i don't speak very well english.Nobody on the french forum can answer to me.On the birthdaypresent.php module i have this for a 1 year validity.$voucher->date_from = date('Y-m-d');$voucher->date_to = (date('y')+1).date('-m-d');I would like to change, i want an 1 month validity, or 30 days.What should I change ?Can you answer to me, do you have an answer ?Thank you very much Link to comment Share on other sites More sharing options...
k3ri Posted September 21, 2010 Share Posted September 21, 2010 I'm by no means a hard-core coder, but I'd start by trying out different combinations:what you have now:$voucher->date_to = (date(‘y’)+1).date(’-m-d’); try:$voucher->date_to = (date(‘m’)+1).date;$voucher->date_to = (date(‘d’)+30).date; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now