Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get today date magento 2 object manager

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$objDate = $objectManager->create('MagentoFrameworkStdlibDateTimeDateTime');
$date = $objDate->gmtDate();
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #today #date #magento #object #manager
ADD COMMENT
Topic
Name
9+6 =