Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

whereDate returning null data #2336

Unanswered
Aamirbashir asked this question in Q&A
Discussion options

  • Laravel-mongodb Version: 3.8
  • PHP Version: 8.0.13
  • Database Driver & Version: 8.0.13

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月06日T05: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:
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

any one can help me on this.

You must be logged in to vote
1 reply
Comment options

this might be too late, but can you test this? #2376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #2334 on January 18, 2022 12:27.

AltStyle によって変換されたページ (->オリジナル) /