<?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 Re: Convert String to Timestamp in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Best-Way-to-Convert-Date-Strings-to-Timestamps-in-Dynatrace-DQL/m-p/289933#M2811</link>
    <description>&lt;P&gt;You need to use the &lt;A href="https://docs.dynatrace.com/docs/shortlink/extraction-and-parsing-commands#parse" target="_blank"&gt;parse&lt;/A&gt; command and DPL with &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-time-date#timestamp-time" target="_blank"&gt;timestamp&lt;/A&gt;&amp;nbsp;matcher:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(str="11/30/2025 08:02:20")
| parse str, """TIMESTAMP("MM/dd/yyyy HH:mm:ss"):ts"""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 07:07:40 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2025-11-20T07:07:40Z</dc:date>
    <item>
      <title>Best Way to Convert Date Strings to Timestamps in Dynatrace DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/Best-Way-to-Convert-Date-Strings-to-Timestamps-in-Dynatrace-DQL/m-p/289926#M2810</link>
      <description>&lt;P&gt;Hello Team ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a field in my logs that contains the date and time, but the field type is a string. Is there a way to convert this field into a timestamp? I tried the totimestamp function, but it isn’t working. The field is in the format MM/DD/YYYY HH:MM:SS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-19 at 6.46.50 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30959iEEAA824425EC9BEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-19 at 6.46.50 PM.png" alt="Screenshot 2025-11-19 at 6.46.50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if anyone has a solution for this? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Akhil Jayendran&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 11:55:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Best-Way-to-Convert-Date-Strings-to-Timestamps-in-Dynatrace-DQL/m-p/289926#M2810</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-11-21T11:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert String to Timestamp</title>
      <link>https://community.dynatrace.com/t5/DQL/Best-Way-to-Convert-Date-Strings-to-Timestamps-in-Dynatrace-DQL/m-p/289933#M2811</link>
      <description>&lt;P&gt;You need to use the &lt;A href="https://docs.dynatrace.com/docs/shortlink/extraction-and-parsing-commands#parse" target="_blank"&gt;parse&lt;/A&gt; command and DPL with &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-time-date#timestamp-time" target="_blank"&gt;timestamp&lt;/A&gt;&amp;nbsp;matcher:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(str="11/30/2025 08:02:20")
| parse str, """TIMESTAMP("MM/dd/yyyy HH:mm:ss"):ts"""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 07:07:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Best-Way-to-Convert-Date-Strings-to-Timestamps-in-Dynatrace-DQL/m-p/289933#M2811</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-11-20T07:07:40Z</dc:date>
    </item>
  </channel>
</rss>

