Answers for "get today date magento 2 object manager"

PHP
1

get today date magento 2 object manager

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$objDate = $objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime');
$date = $objDate->gmtDate();
Posted by: Guest on September-13-2021

Code answers related to "get today date magento 2 object manager"

Browse Popular Code Answers by Language