How to Show an Estimated Delivery Date in Magento

datemagento-1.9

I am trying to show an estimated delivery date to my shipping methods, I currently have this code which is displaying the date that is it today in the format of Thursday-November-2014

<?php $currentTimestamp = Mage::getModel('core/date')->timestamp(time());
        echo 'Estimated delivery date ' ;
        echo $deliverydate = date('l-F-Y', $currentTimestamp);?>

But how can I get it to add 2 days on to the date and display that?

Thank you if you can help.

Best Answer

instead of

$currentTimestamp = Mage::getModel('core/date')->timestamp(time());

use this:

$currentTimestamp = Mage::getModel('core/date')->timestamp(time() + 2 * 24 * 60 * 60);
Related Topic