I want to collect the records from 10PM to 5AM of wishlist data. I have already created a module and not sure how to filter the records by this timeframe.
The wishlist table contains a field called Updated at. Now how can I use this field to filter the records?
Can anyone please guide me on that?
Any help will be appreciated.
Error:
Fatal error: Uncaught Error: Call to undefined function thimma\mymodule\Model\now() in /var/www/html/thimmajan3/thimma/app/code/thimma/mymodule/Model/Salesorder.php:28 Stack trace: #0 /var/www/html/thimmajan3/thimma/app/code/thimma/mymodule/Controller/Salesorder/Export.php(78): thimma\mymodule\Model\Salesorder->getAllTransactionaldata() #1 /var/www/html/thimmajan3/thimma/vendor/magento/framework/App/Action/Action.php(108): thimma\mymodule\Controller\Salesorder\Export->execute() #2 /var/www/html/thimmajan3/thimma/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #3 /var/www/html/thimmajan3/thimma/vendor/magento/framework/Interception/Interceptor.php(138): thimma\mymodule\Controller\Salesorder\Export\Interceptor->___callParent('dispatch', Array) #4 /var/www/html/thimmajan3/thimma/vendor/magento/module-customer-segment/Model/App/Action/ContextPlugin.php(81): Butt in /var/www/html/thimmajan3/thimma/app/code/thimma/mymodule/Model/Salesorder.php on line 28