# How to add today's date using variable dynamically in the keystroke event in browser monitoring?

**URL:** <https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371>\
**Category:** Synthetic Monitoring\
**Tags:** public-synthetic-locations, http-monitor, browser-monitors, synthetic-monitoring, private-synthetic-locations\
**Created:** [April 25, 2025, 8:53am UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371 "2025-04-25T08:53:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [April 25, 2025, 8:53am UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/1 "2025-04-25T08:53:23Z")

</div>

how to add today’s date using variable dynamically in the keystroke event in browser monitoring ?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 25, 2025, 11:46am UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/2 "2025-04-25T11:46:13Z")

</div>

Hi,

You need to create your own [JavaScript clickpath event](https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#javascript)&nbsp;for calculate that date, and input in correct field.

You have JavaScript examples in that link.

Best regards

---

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [April 25, 2025, 12:01pm UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/3 "2025-04-25T12:01:45Z")

</div>

Hi Anton

Thanks for your reply.  
Do you have the link of this script.

As am don’t see the examples in the above link.

Thanks,

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 25, 2025, 12:24pm UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/4 "2025-04-25T12:24:36Z")

</div>

Hi,

They are in same page in you [scroll down](https://docs.dynatrace.com/docs/shortlink/id-brower-clickpath-events#examples).

Best regards

---

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [April 25, 2025, 12:28pm UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/5 "2025-04-25T12:28:22Z")

</div>

no I don’t see it

Please share the screenshot

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 25, 2025, 12:52pm UTC](https://community.dynatrace.com/t/how-to-add-todays-date-using-variable-dynamically-in-the-keystroke-event-in-browser-monitoring/51371/6 "2025-04-25T12:52:55Z")

</div>

Hi,

It means, you do not have a specific example for your use case. You need to development your own JavasScript code to:

1. Create a today’s date in correct format.
2. Fill field with that value.

Best regards
