# Way to get the date YYYY-MM-DD without time?

**URL:** <https://forum.adalo.com/t/way-to-get-the-date-yyyy-mm-dd-without-time/35181>\
**Category:** Get Help\
**Created:** [January 10, 2023, 10:35pm UTC](https://forum.adalo.com/t/way-to-get-the-date-yyyy-mm-dd-without-time/35181 "2023-01-10T22:35:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 11, 2023, 11:17am UTC](https://forum.adalo.com/t/way-to-get-the-date-yyyy-mm-dd-without-time/35181/6 "2023-01-11T11:17:37Z")

</div>

Giuseppe with JavaScript!

> **[Current Date as YYYY-MM-DD.mp4](https://drive.google.com/file/d/1VbF5noJhyBe7e3fq6KVCcoD5wRhZPJMT/view?usp=share_link)**
>
> Google Drive file.

> **JS**
>
> ```auto
> var date = new Date();
> var format = date.toISOString().slice(0, 10);
> return format
> 
> ```

> **Component Details**
>
> You need the Arbitrary Javascript component made by Pragmaflow. Nowadays there’s a error when downloading components from their [site](https://adalo.pragmaflowservers.com/install-component). For download them you can follow these steps : [Every new beginning comes from some other beginnings end - #48 by James\_App\_Maker](https://forum.adalo.com/t/every-new-beginning-comes-from-some-other-beginnings-end/20485/48) And Pragmaflow created a video of this way too : [Installing Adalo Github components walkthrough - YouTube](https://www.youtube.com/watch?v=saphxeQ_4Fo)

Also you can use a API like @Abracadalo as Nathan mentioned! : [String API | Abracadalo API Handbook](https://docs.abracadalo.com/string-api#substring)

Thank you

---

_[View the full topic](https://forum.adalo.com/t/way-to-get-the-date-yyyy-mm-dd-without-time/35181)._
