//
Since it is a JS Date object, you can use any of the various methods that are on Date. JavaScript Date Reference
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? JavaScript getTimezoneOffset() Method
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?
<SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Date</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
There is a discussion in the Qt doc about how a JS Date is equivalent to a QDateTime, which is what we use internally - Data Type Conversion Between QML and C++ | Qt QML 5.8
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.