You can get the current date and time using the following code:
|
1 |
$dateAndTime = date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time())); |
Getting the current date and time
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.