Skip to content
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

BETWEEN Method? #323

Open
kucukaslancan opened this issue Dec 2, 2021 · 2 comments
Open

BETWEEN Method? #323

kucukaslancan opened this issue Dec 2, 2021 · 2 comments

Comments

@kucukaslancan
Copy link

I want to get two date ranges. I can't find the method in. How can I do it?

@cbornhoft
Copy link
Member

cbornhoft commented Dec 3, 2021

Hey @kucukaslancan, I'll take a few minutes to add this over the weekend. I don't think it was ever fully implemented into v2.

Thanks!

@get-fullstack
Copy link

get-fullstack commented May 15, 2024

@kucukaslancan

$column = 'date';
$from = $data['from'];
$to = $data['to'];
$query->where('FROM_UNIXTIME('.$column.', "%d\.%m\.%Y") BETWEEN ? AND ?', ["$from", "$to"]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants