<?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: Customize date/time picker in G-web in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364930#M718</link>
    <description>&lt;P&gt;Thanks Milan.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will try to investigate further why it can behave differently in that particular pc and look also into third party date/time picker.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 06:25:51 GMT</pubDate>
    <dc:creator>irfanabid</dc:creator>
    <dc:date>2024-04-05T06:25:51Z</dc:date>
    <item>
      <title>Customize date/time picker in G-web</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364392#M714</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does Anyone know how to localize date/time picker? I mean, the date/time format where the default is MM/dd/yyyy hh:mm:ss.fff and I want it to be in dd/MM/yyyy hh:mm:ss format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used javascript (see: &lt;A title="timestamp format change" href="https://forums.ni.com/t5/G-Web-Development-Software/Change-the-format-of-the-Timestamp-Control-Indicator/m-p/4178399" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&amp;nbsp;) but it works only if I use date/time picker button, but &lt;STRONG&gt;not if I changed the date/time manually&lt;/STRONG&gt; (changing the first item - supposed to be dd will jump to MM).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw the html code generated but unsure how to make the change permanent and worked for both using picker button as well as put the date/time manually:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;:&lt;BR /&gt;&amp;lt;div class="ni-front-panel-wrapper" vi-ref="" ni-control-id="FrontPanelWrapper"&amp;gt;&lt;BR /&gt;&amp;lt;ni-front-panel control-resize-mode='fixed' layout='absolute' ni-control-id='2'&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;jqx-date-time-picker binding-info='{"accessMode": "readOnly", "dataItem": "dataItem_Timestamp", "dco": 0, "isLatched": false, "prop": "value", "sync": false, "unplacedOrDisabled": true}' calendar-button='true' control-resize-mode='fixed' display-kind='local'&lt;BR /&gt;drop-down-display-mode='classic' edit-mode='partial' follower-ids='["4"]' format-string='&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MM/dd/yyyy hh:mm:ss.fff tt&lt;/STRONG&gt;&lt;/FONT&gt;' label-alignment='top-left' label-id='4' max='DateTime(&amp;amp;apos;3000-12-31 17:00:00.000&amp;amp;apos;, &amp;amp;apos;UTC&amp;amp;apos;)' min='DateTime(&amp;amp;apos;1599-12-31 17:00:00.000&amp;amp;apos;, &amp;amp;apos;UTC&amp;amp;apos;)'&lt;BR /&gt;ni-control-id='3' spin-buttons='true' spin-buttons-initial-delay='500' spin-buttons-position='left' validation='interaction' value='DateTime(&amp;amp;apos;1904-01-01 00:00:00.000&amp;amp;apos;, &amp;amp;apos;UTC&amp;amp;apos;)'&amp;gt;&amp;lt;/jqx-date-time-picker&amp;gt;&lt;/P&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;:&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 04:16:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364392#M714</guid>
      <dc:creator>irfanabid</dc:creator>
      <dc:date>2024-04-03T04:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Customize date/time picker in G-web</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364614#M715</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/540781"&gt;@irfanabid&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I used javascript (see: &lt;A title="timestamp format change" href="https://forums.ni.com/t5/G-Web-Development-Software/Change-the-format-of-the-Timestamp-Control-Indicator/m-p/4178399" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&amp;nbsp;) but it works only if I use date/time picker button, but &lt;STRONG&gt;not if I changed the date/time manually&lt;/STRONG&gt; (changing the first item - supposed to be dd will jump to MM).&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tried the linked example with the string you mentioned,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;dd/MM/yyyy hh:mm:ss&lt;/FONT&gt;, and the example seems to work both interactively with keyboard and from the date/time picker button. The first part of the string seems to be treated as the day:&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="datetime.gif" style="width: 583px;"&gt;&lt;img src="https://ip1.i.lithium.com/e1353bac0070b3539ced1918166036bc7c94a7a5/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33333038383569433831354633463537413941413232442f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="datetime.gif" alt="datetime.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you have an example that shows the unexpected behavior you have seen?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 16:42:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364614#M715</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2024-04-03T16:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Customize date/time picker in G-web</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364732#M716</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Milan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attached file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just realized that it's not in all PC. In another PC, it looks the same as you showed. Any idea why it can behave differently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the correct behavior, however, I saw an issue if I enter invalid data, say month 13, or day 32.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 07:06:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364732#M716</guid>
      <dc:creator>irfanabid</dc:creator>
      <dc:date>2024-04-04T07:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Customize date/time picker in G-web</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364846#M717</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I just realized that it's not in all PC. In another PC, it looks the same as you showed. Any idea why it can behave differently?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not sure and I have not been able to reproduce the behavior so it would be difficult to think of a workaround. Maybe the systems have different locale settings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's probably an unsatisfactory response but that is part of the risk of leveraging features G Web has not exposed in the editor. They may be incomplete or not thoroughly tested and therefore were not yet exposed for general usage. You may want to consider leveraging a third party JS library with the JavaScript Library Interface for more control of the desired features of a custom datetime picker.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 16:22:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364846#M717</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2024-04-04T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Customize date/time picker in G-web</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364930#M718</link>
      <description>&lt;P&gt;Thanks Milan.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will try to investigate further why it can behave differently in that particular pc and look also into third party date/time picker.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 06:25:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/Customize-date-time-picker-in-G-web/m-p/4364930#M718</guid>
      <dc:creator>irfanabid</dc:creator>
      <dc:date>2024-04-05T06:25:51Z</dc:date>
    </item>
  </channel>
</rss>

