How to get the current store id in Magento 2

For getting the store id, please use the below code:How to get the current store id in Magento 2

How to get the current store id in Magento 2expoundsofttechsolution What is GMT?

$objectManager =  \Magento\Framework\App\ObjectManager::getInstance();        
$storeManager = $objectManager->get(‘\Magento\Store\Model\StoreManagerInterface’);
echo $storeManager->getStore()->getStoreId();