When you use GrumPHP code sniffer tool to commit your code for the project to follow Magento Coding Standard.
GrumPHP is the Automatic Code Quality Checker tools for PHP based applications.
Continue reading “How to resolved WARNING | Unescaped output detected of GrumPHP Magento 2.”
You can set Custom formatting of Date using Magento 2 by DateTimeFactory Class.
You just need to pass custom format of date in gmtDate() function as per your requirement.
Many times, you need to set Date format to specific format, While you are working with third party API and you need to pass Date as the specific format from Magento, in this situations you can use below code snippet. Continue reading “How to set custom date format using Magento 2?”