# Get Week, Month, and Year

**URL:** <https://forum.bubble.io/t/get-week-month-and-year/57006>\
**Category:** Need help\
**Created:** [May 17, 2019, 4:10pm UTC](https://forum.bubble.io/t/get-week-month-and-year/57006 "2019-05-17T16:10:08Z")\
**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:** [May 17, 2019, 7:45pm UTC](https://forum.bubble.io/t/get-week-month-and-year/57006/2 "2019-05-17T19:45:28Z")

</div>

Hey Brian!

We have tools that work on dates like the :extract operation, and all the date modifiers that let you create dates for comparison. It is important to remember that all dates in Bubble are datetimestamps, so both date and time.

Here’s one way to do the current month:

 ![06%20PM](https://us1.discourse-cdn.com/bubble/original/3X/7/f/7fc87d4a95d93b22d5de7b03c640107acba01648.png)

For the current week my example is a bit more complicated as we can’t combine all this into one expression in the constraints.

So we use a couple expression elements from the free Toolbox plugin that would sit outside of the repeating group:

 ![57%20PM](https://us1.discourse-cdn.com/bubble/original/3X/5/5/555f4c5f879883edfe5c015ec84118e3a6baa90b.png)  
 ![47%20PM](https://us1.discourse-cdn.com/bubble/original/3X/6/0/602cbbde6e34f94f3a1ac371963a75eb642bf91b.png)

Then the actual search for the rg:

 ![19%20PM](https://us1.discourse-cdn.com/bubble/original/3X/e/3/e38c8bde60d45a835b6588fa4dc849018c8c53be.png)

You can then use this approach to calculating all kinds of ranges. Here’s some [reference material](https://bubble.io/reference#Data.Messages.date) on date types that might help.

Good luck!

–Ken

  

* * *

> **Looking to accelerate your app development?**
>
> Development of Advanced Apps at [https://uniqueideas.com](https://uniqueideas.com?utm_source=bubble&utm_medium=forum&utm_content=signature-unique-ideas&utm_campaign=builders) or schedule a [free intro session](https://uniqueideas.com/coaching?utm_source=bubble&utm_medium=forum&utm_content=signature-free-intro&utm_campaign=builders) 🎁
> 
> Ken Truesdale  
> [LinkedIn](https://www.linkedin.com/in/mebeingken/)

---

_[View the full topic](https://forum.bubble.io/t/get-week-month-and-year/57006)._
