How to check store time in Magento 2

For the get the website store time we need to use the object managerHow to check store time in Magento 2

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$objDate = $objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime');
$date = $objDate->gmtDate();// it will return the store time

How to check store time in Magento 2expoundsofttechsolution