<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use pre-script to add days on current date with HTTP Synthetic? in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259542#M2686</link>
    <description>&lt;P&gt;Hello .&lt;/P&gt;
&lt;P&gt;can someone help on this item please ?&lt;/P&gt;
&lt;P&gt;i want to add few days on the&amp;nbsp;&amp;nbsp;api.date() value to have a future date.&lt;/P&gt;
&lt;P&gt;but i seems more complicate that i thought&lt;/P&gt;
&lt;P&gt;is that possible ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried many things but still not working .this is my last code i tried :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var numberOfDaysToAdd = 10;&lt;/P&gt;
&lt;P&gt;api.setValue("DateNow",api.dateToFormat(api.date(), "yyyy-MM-dd"));&lt;/P&gt;
&lt;P&gt;var CurrentDate = new date();&lt;/P&gt;
&lt;P&gt;DepartureDate = CurrentDate.setDate(api.getValue(DateNow) + numberOfDaysToAdd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your help and feedback&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2025 11:21:24 GMT</pubDate>
    <dc:creator>H_THIM</dc:creator>
    <dc:date>2025-12-18T11:21:24Z</dc:date>
    <item>
      <title>How to use pre-script to add days on current date with HTTP Synthetic?</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259542#M2686</link>
      <description>&lt;P&gt;Hello .&lt;/P&gt;
&lt;P&gt;can someone help on this item please ?&lt;/P&gt;
&lt;P&gt;i want to add few days on the&amp;nbsp;&amp;nbsp;api.date() value to have a future date.&lt;/P&gt;
&lt;P&gt;but i seems more complicate that i thought&lt;/P&gt;
&lt;P&gt;is that possible ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried many things but still not working .this is my last code i tried :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var numberOfDaysToAdd = 10;&lt;/P&gt;
&lt;P&gt;api.setValue("DateNow",api.dateToFormat(api.date(), "yyyy-MM-dd"));&lt;/P&gt;
&lt;P&gt;var CurrentDate = new date();&lt;/P&gt;
&lt;P&gt;DepartureDate = CurrentDate.setDate(api.getValue(DateNow) + numberOfDaysToAdd);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your help and feedback&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 11:21:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259542#M2686</guid>
      <dc:creator>H_THIM</dc:creator>
      <dc:date>2025-12-18T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use pre-script to add days on current date with http synthetic</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259545#M2687</link>
      <description>&lt;P&gt;Have you tried the snippet &lt;A href="https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-Dynamic-Date-Selection-with-help-of-JavaScript/ta-p/209315" target="_self"&gt;here?&lt;/A&gt;&amp;nbsp;You could modify it to be suitable for an HTTP Monitor.&lt;BR /&gt;There's some great how to guides for Synthetic in the &lt;A href="https://community.dynatrace.com/t5/Troubleshooting/Synthetic-Troubleshooting-Map/ta-p/250426" target="_self"&gt;Synthetic Troubleshooting Map&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 10:26:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259545#M2687</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2024-10-17T10:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use pre-script to add days on current date with http synthetic</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259549#M2688</link>
      <description>&lt;P&gt;Thanks a lot .&lt;/P&gt;&lt;P&gt;it's good start it will help for sure&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 10:53:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/How-to-use-pre-script-to-add-days-on-current-date-with-HTTP/m-p/259549#M2688</guid>
      <dc:creator>H_THIM</dc:creator>
      <dc:date>2024-10-17T10:53:44Z</dc:date>
    </item>
  </channel>
</rss>

