whereDate returning null data #2336
              
                Unanswered
              
          
                  
                    
                      Aamirbashir
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 1 reply
-
| any one can help me on this. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I am trying to get data by date, but I get a null value
Steps to reproduce
Model.
protected $table="categories";
protected $connection="mongodb";
protected $dates=['created_at','updated_at'];
Query:
$category = category::whereDate('created_at','2022-01-06')->get();
Data in database
created_at: 2022-01-06T05:18:06.849+0000
Expected behaviour
I am trying to get data by date non of the query are working on a date.
Actual behaviour
I am getting Null data
Logs:
Beta Was this translation helpful? Give feedback.
All reactions