Good afternoon, how can I create a function that calculates an expiration date according to the date it was entered in the database (created).
Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.
Thank you for your support!
{date:d-m-Y$(data:field_name_with_date)+100days}The above code will take a date value coming from a field named "field_name_with_date" and add 100 days and return the date!
columnname:{fn:expiry_check$entry_date=(var:tableviewname.row.model.date)}Then in the php block you've called expiry_check you can use $this->get("entry_date") to get the date and perform the calculation. Just echo out the text you want.
columnname:{date:d/m/Y$(var:tableviewname.row.model.created) +10 days}
DATEDIFF(model.created , CURDATE()):model.calculated_dateTake note of the spaces around the comma
2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com