<?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: Building a custom date format to include milliseconds: 2020-06-11T03:18:30.000Z in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Building-a-custom-date-format-to-include-milliseconds-2020-06/m-p/425916#M67549</link>
    <description>&lt;P&gt;The issue might be with the Z, not with milliseconds.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

date_str = "2020-06-11T03:18:30.123Z";
Show(Informat(date_str, "Format Pattern", "&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;'T'&amp;gt;&amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;"));
//drop Z
date_str = Left(date_str, Length(date_str) - 1);
Show(Informat(date_str, "Format Pattern", "&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;'T'&amp;gt;&amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;"));
date_with_ms = Format(date_formatted, "yyyy-mm-ddThh:mm:ss", 25,3);
show(date_with_ms);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Oct 2021 07:14:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-10-13T07:14:49Z</dc:date>
    <item>
      <title>Building a custom date format to include milliseconds: 2020-06-11T03:18:30.000Z</title>
      <link>https://community.jmp.com/t5/Discussions/Building-a-custom-date-format-to-include-milliseconds-2020-06/m-p/425900#M67547</link>
      <description>&lt;P&gt;I have used the custom date format generator to produce this custom format (which does not work):&lt;/P&gt;&lt;P&gt;&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;'T'&amp;gt;&amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format I received from Twitter has th period between seconds and hundredths, but that is not an option in the date format builder.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Building-a-custom-date-format-to-include-milliseconds-2020-06/m-p/425900#M67547</guid>
      <dc:creator>LNitz</dc:creator>
      <dc:date>2023-06-10T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Building a custom date format to include milliseconds: 2020-06-11T03:18:30.000Z</title>
      <link>https://community.jmp.com/t5/Discussions/Building-a-custom-date-format-to-include-milliseconds-2020-06/m-p/425916#M67549</link>
      <description>&lt;P&gt;The issue might be with the Z, not with milliseconds.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

date_str = "2020-06-11T03:18:30.123Z";
Show(Informat(date_str, "Format Pattern", "&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;'T'&amp;gt;&amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;"));
//drop Z
date_str = Left(date_str, Length(date_str) - 1);
Show(Informat(date_str, "Format Pattern", "&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;'T'&amp;gt;&amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;"));
date_with_ms = Format(date_formatted, "yyyy-mm-ddThh:mm:ss", 25,3);
show(date_with_ms);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Oct 2021 07:14:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Building-a-custom-date-format-to-include-milliseconds-2020-06/m-p/425916#M67549</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-13T07:14:49Z</dc:date>
    </item>
  </channel>
</rss>

