# How to set an input and equal to a current date

**URL:** <https://forum.bubble.io/t/how-to-set-an-input-and-equal-to-a-current-date/44700>\
**Category:** Need help\
**Created:** [December 15, 2018, 12:34am UTC](https://forum.bubble.io/t/how-to-set-an-input-and-equal-to-a-current-date/44700 "2018-12-15T00:34:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mebeingken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mebeingken/32/20139_2.png) [@mebeingken](https://forum.bubble.io/u/mebeingken)\
**Post date:** [December 15, 2018, 2:47am UTC](https://forum.bubble.io/t/how-to-set-an-input-and-equal-to-a-current-date/44700/2 "2018-12-15T02:47:41Z")

</div>

Hi @stolzj19,

There are a few ways to handle…here’s one:  
 ![41%20PM](https://us1.discourse-cdn.com/bubble/original/3X/3/7/376034fda6bd41d32f71cb48103d614dcc9b4697.png)

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.

---

_[View the full topic](https://forum.bubble.io/t/how-to-set-an-input-and-equal-to-a-current-date/44700)._
