# Date Functions

**URL:** <https://community.automationedge.com/t/date-functions/6206>\
**Category:** Process Studio\
**Created:** [August 5, 2022, 9:04am UTC](https://community.automationedge.com/t/date-functions/6206 "2022-08-05T09:04:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Rohan](https://community.automationedge.com/u/Rohan)\
**Post date:** [August 5, 2022, 9:04am UTC](https://community.automationedge.com/t/date-functions/6206/1 "2022-08-05T09:04:36Z")

</div>

How to get day from current date in modified javascript step?

---

<div class="post-metadata">

**Author:** ![KalyaniW](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@KalyaniW](https://community.automationedge.com/u/KalyaniW)\
**Post date:** [August 9, 2022, 5:46am UTC](https://community.automationedge.com/t/date-functions/6206/2 "2022-08-09T05:46:22Z")

</div>

Hello @Rohan

Refer to the code below -

```auto
var today = new Date();
var dd = String(today.getDate())
var mm = String(today.getMonth() + 1)
var yyyy = today.getFullYear();
today = mm + '/' + dd + '/' + yyyy;

```
