# First date of current month

**URL:** <https://forum.adalo.com/t/first-date-of-current-month/35216>\
**Category:** Get Help\
**Created:** [January 11, 2023, 7:26pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216 "2023-01-11T19:26:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berg](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Berg](https://forum.adalo.com/u/Berg)\
**Post date:** [January 11, 2023, 7:26pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216/1 "2023-01-11T19:26:16Z")

</div>

Hi folks,

Is there a method to get the **first** date of the **current** month? I haven’t been able to find an answer to this relatively simple question.

What I need it for: together with a day of the month that the user submits in a form (and is stored in the user collection), I want to be able to calculate a date. For instance, if the user submits day ‘21’, I want to add this number (minus 1) in a formula to the first date of the current month, which should result in the date 21 January 2023.

Perhaps there is an easier way to archieve this, but to me this seems to be most straightforward method.

Any ideas?

---

<div class="post-metadata">

**Author:** ![onnit\_studio](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/onnit_studio/32/36947_2.png) [@onnit\_studio](https://forum.adalo.com/u/onnit_studio)\
**Post date:** [January 12, 2023, 9:59pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216/2 "2023-01-12T21:59:34Z")

</div>

It’s not possible to do it in Adalo. You need to use an API or a custom component to add this functionality into your app. I created a component to do something very similar for one of my apps but an API would also work. You can let me know if you get stuck on this and I can help you by adjusting the component to get the first date of the current month and sharing it with you or to create an API which would return the date you want.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [January 12, 2023, 10:43pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216/3 "2023-01-12T22:43:33Z")

</div>

If you’re looking to just get the day number, you can do it by adding a hidden input with a default value of the date that was entered. Then adjust the date format to the day number. Last, use that input to update the day number in the collection.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [January 15, 2023, 2:41pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216/4 "2023-01-15T14:41:37Z")

</div>

Hi @Berg,

Welcome to the community 🥳

Need like this? And if it is 1 or 2?

 ![ggg](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/4/a/4a5f9424d55c70ecc944cdfd0684affcde449cac.png)

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [January 25, 2023, 2:42pm UTC](https://forum.adalo.com/t/first-date-of-current-month/35216/5 "2023-01-25T14:42:16Z")

</div>

Closed on January 25, 2023, 2:42pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
