# Change Date format using modified javascript

**URL:** <https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721>\
**Category:** Get Help & Discuss\
**Tags:** rpa, learning, process-studio\
**Created:** [April 11, 2022, 5:43am UTC](https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721 "2022-04-11T05:43:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonam1](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sonam1](https://community.automationedge.com/u/sonam1)\
**Post date:** [April 11, 2022, 5:43am UTC](https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721/1 "2022-04-11T05:43:04Z")

</div>

how to change dd-mm-yy date format into dd/mm/yyyy using 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:** [April 11, 2022, 7:25am UTC](https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721/2 "2022-04-11T07:25:49Z")

</div>

Hello @sonam1

Use the function `date2str(input, "dd/MM/yy")` in Modified Java Script step.

Input:

 ![Image1](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/e/e72f88e7e497903895a4dac89fbb80ebdf09f1a9.png)

Modified Java Script:

 ![Image2](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/7/79417ba693acbc4f2a657506d6f71ef2f36af85f.png)

Output:

 ![Image3](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/5/5a277ba019598b84d9e73e2edea9bff1e41fb1bd.png)

---

<div class="post-metadata">

**Author:** ![sonam1](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sonam1](https://community.automationedge.com/u/sonam1)\
**Post date:** [April 11, 2022, 7:33am UTC](https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721/3 "2022-04-11T07:33:43Z")

</div>

Hello @KalyaniW

Actually I want to convert dd-mm-yy format to dd/mm/yyyy format.

---

<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:** [April 11, 2022, 7:35am UTC](https://community.automationedge.com/t/change-date-format-using-modified-javascript/5721/4 "2022-04-11T07:35:43Z")

</div>

Hello @sonam1

Please change the format in Modified Java Script to `dd/MM/yyyy`
