-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Question: Query db by MongoDate #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For me, |
I am also having a problem with the dates, I have a script like this: $from = new MongoDate(Input::get('from')); //from is in time format I don't know what I'm missing but the date range is not working, is there something I am missing? Thanks for writing a great extension btw. Cheers, |
I'm looking into this right now. |
I did not encounter any problems with dates. Check the date tests in 93e53ec |
Awesome, got some tips from your tests. Thank you |
Added some more date tweaks and a bit of documentation: https://github.com/jenssegers/Laravel-MongoDB#dates |
I added Carbon date support to the latest version. Can anyone report back if he's having problems with these changes? |
Could you perhaps quickly explain how to get MongoDate objects converted to Carbon instances? Whenever I read out data, the |
I am facing the issue with new version.. |
@sebastiaanluca : u can use MongoDate::toDateTime as given in following link |
@jenssegers The
Is the Carbon date support not applicable to this case? Thanks! |
I am facing the issue with new version..² |
@saraht129 @jenssegers I've tired your solution and still get empty result! Also tried (for example) |
Hello,
first want to say that your extension is awesome!
I have one question... I have mongodb collection saved with models that have column type "Date". When I access that collection I see that column with Date type is actually MongoDate object.
My question is how I can query by that column? I have tried next scenarios with no success:
Thanks,
Milos
The text was updated successfully, but these errors were encountered: