# Comparing just the date part while doing a search for

**URL:** <https://forum.bubble.io/t/comparing-just-the-date-part-while-doing-a-search-for/61339>\
**Category:** Database\
**Created:** [July 10, 2019, 7:43am UTC](https://forum.bubble.io/t/comparing-just-the-date-part-while-doing-a-search-for/61339 "2019-07-10T07:43:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [July 10, 2019, 9:06am UTC](https://forum.bubble.io/t/comparing-just-the-date-part-while-doing-a-search-for/61339/2 "2019-07-10T09:06:21Z")

</div>

Kudos to @mebeingken

> [@How to set an input and equal to a current date](http://forum.bubble.io/t/how-to-set-an-input-and-equal-to-a-current-date/44700/2):
>
> Hi @stolzj19, There are a few ways to handle…here’s one: [41%20PM] Because date data types are actually always date AND time we need to select the entire range of time. In the \< comparison we set the current date/time to a day forward and then bring it all back to zero’s on the time – this ensures we get everything including the last millisecond of that date. For the \>= we are going back to the first millisecond of the current day.

Editor view (note will filter on today’s date July 10th 2019)

> **[Bubble Editor - luke2](https://bubble.io/page?type=page&name=date-tester&id=luke2&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

_[View the full topic](https://forum.bubble.io/t/comparing-just-the-date-part-while-doing-a-search-for/61339)._
