📜  获取今天日期 magento 2 对象管理器 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:52.689000             🧑  作者: Mango

代码示例1
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$objDate = $objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime');
$date = $objDate->gmtDate();