<?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: How to insert local date/time into Date field? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473961#M2392</link>
    <description>&lt;P&gt;//&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 01:10:32 GMT</pubDate>
    <dc:creator>_____</dc:creator>
    <dc:date>2021-05-26T01:10:32Z</dc:date>
    <item>
      <title>//</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473959#M2390</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 23:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473959#M2390</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-25T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert local date/time into Date field?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473960#M2391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the Date field is actually of Date data type, then it should accept just a regular JS Date object. However, the function you reference above returns a string. Can you see if just passing in a new Date works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a discussion in the Qt doc about how a JS Date is equivalent to a QDateTime, which is what we use internally -&amp;nbsp;&lt;A class="link-titled" href="http://doc.qt.io/qt-5/qtqml-cppintegration-data.html" title="http://doc.qt.io/qt-5/qtqml-cppintegration-data.html"&gt;Data Type Conversion Between QML and C++ | Qt QML 5.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 16:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473960#M2391</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-22T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert local date/time into Date field?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473961#M2392</link>
      <description>&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 01:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473961#M2392</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2021-05-26T01:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert local date/time into Date field?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473962#M2393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it is a JS Date object, you can use any of the various methods that are on Date.&amp;nbsp;&lt;A class="link-titled" href="https://www.w3schools.com/jsref/jsref_obj_date.asp" title="https://www.w3schools.com/jsref/jsref_obj_date.asp"&gt;JavaScript Date Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are probably many ways to go about doing it. Maybe you could get the timezone offset, subtract that from the original milliseconds since epoch that is returned, and then construct a new date from that value?&amp;nbsp;&lt;A class="link-titled" href="https://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp" title="https://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp"&gt;JavaScript getTimezoneOffset() Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 17:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/unreadable-title/m-p/473962#M2393</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-05-22T17:37:56Z</dc:date>
    </item>
  </channel>
</rss>

