Bubble.io Date filter: Yesterday
Learn how to filter dates in Bubble.io by yesterday in this Bubble tutorial video.
Master Bubble date filtering: Learn how to target yesterday's events with precise date constraints in your calendar app!
Unlock powerful date filtering: Discover the secret to filtering events by specific date ranges in Bubble, including yesterday's data.
Elevate your Bubble skills: Transform your calendar app with advanced date filtering techniques for pinpoint event targeting.
Filtering by Yesterday in Bubble.io
I was recently helping a Bubble app builder in a Bubble coaching session filter by dates in the application and it can be a little bit tricky. So in this Bubble tutorial video, I'm going to demonstrate how we can filter by yesterday.
Setting Up the Calendar
I've got a calendar here at the moment. It is searching for all events and it's just going to return all events. Then I've got two printouts of dates here in order to show you what's exactly going on behind the scenes.
Joining Our Community
But before I launch into that, if you are learning Bubble, if you want to launch a no-code SaaS, then there's no better place to do it than clicking the link down below and joining our community and accessing all of our videos through our website.
Targeting Yesterday's Date
In order to target yesterday, we need to sandwich a date field between "is it greater than this date" and "is it less than this date". So let's begin by getting the start of yesterday.
Getting the Start of Yesterday
I can say current date time and then I could say days minus one and then round it down to day. Let's see how that prints out. So today's date is May 8th, and there we go, we're going back to the start of yesterday.
Getting the End of Yesterday
Now how do I get the end of yesterday? Well, I could - and this is going to be using the equal to or greater than and less than operators, so this would be perfect. I can just say rounded down to day.
No Need for Subtracting a Second
Now you might think strictly I'd need to then minus one second off it, but no, you don't. This is going back to the very start of today, which is the moment after yesterday finishes, of course.
Applying Constraints
So in applying this to some constraints here, I can say date is equal to or greater than, then I need the start of yesterday which is current date time days minus one rounded down to day. Okay, so that's midnight the start of yesterday.
Setting the End Constraint
But then the end of yesterday is just less than, so it's not equal to or less than, it's just less than midnight today. So current date time rounded down to today.
Conclusion
Okay, so that's how you would create a constraint on some date fields to target events that only happen yesterday in your Bubble.io app.
Ready to Transform Your App Idea into Reality?
Access 3 courses, 400+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 400+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
14-Day Money-Back Guarantee
We’re confident this bundle will transform your app development journey. But if you’re not satisfied within 14 days, we’ll refund your full investment—no questions asked.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
Not at all. Our courses are designed for beginners and guide you step-by-step in using Bubble to build powerful web apps—no coding required.
Forever. You’ll get lifetime access, so you can learn at your own pace and revisit materials anytime.
Our supportive community is here to help. Ask questions, get feedback, and learn from fellow no-coders who’ve been where you are now.
Absolutely. If you’re not satisfied within 14 days, just reach out, and we’ll issue a full refund. We stand by the value of our bundle.
Yes, this is a special limited-time offer. The regular price is $350, so take advantage of the discount while it lasts!