<doc>
  <legacy_id>1330</legacy_id>
  <name>useSystemDate</name>
  <type>property</type>
  <syntax>
    <example>set the useSystemDate to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <local/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
    <category>The System Environment</category>
  </classification>
  <references>
    <function tag="dateFormat">dateFormat Function</function>
    <function tag="time">time Function</function>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies whether the <function tag="date">date</function> and <function tag="time">time</function> <glossary tag="function">functions</glossary> should be formatted in accordance with the user's system preferences, or in the standard <function tag="format">format</function> used in the United States.</summary>
  <examples>
    <example>set the useSystemDate to true</example>
  </examples>
  <description>
    <p>Use the <b>useSystemDate</b> <glossary tag="property">property</glossary> to correctly format dates and times that will be viewed by the user (for example, dates and times that are displayed in a <keyword tag="field">field</keyword>).</p><p/><p><b>Value:</b></p><p>The <b>useSystemDate</b> is true or false.</p><p/><p>By default, the <b>useSystemDate</b> <glossary tag="property">property</glossary> is set to false.</p><p/><p><b>Comments:</b></p><p>Setting the <b>useSystemDate</b> <glossary tag="property">property</glossary> to true does the same thing as using the <keyword tag="system">system</keyword> <glossary tag="keyword">keyword</glossary> with the <function tag="date">date</function> or <function tag="time">time</function> <glossary tag="function">functions</glossary>. If the <b>useSystemDate</b> is set to true, the <function tag="date">date</function> and <function tag="time">time</function> <glossary tag="function">functions</glossary> <constant tag="return">return</constant> the same value as<code> the system date </code>and<code> the system time</code>, respectively. If the <b>useSystemDate</b> is set to false, the <function tag="date">date</function> and <function tag="time">time</function> <glossary tag="function">functions</glossary> <constant tag="return">return</constant> the same value as<code> the english date </code>and<code> the english time</code>, respectively.</p><p/><p>The system format is set by the Date &amp; Time control panel (on Mac OS systems), the Date control panel (on <glossary tag="Windows">Windows systems</glossary>), or the LANG <glossary tag="environment variable">environment variable</glossary> (on <glossary tag="Unix">Unix systems</glossary>).</p><p/><p>Since the <b>useSystemDate</b> is a <href tag="../dictionary/local_property.xml">local property</href>, its <function tag="value">value</function> is <command tag="reset">reset</command> to false when the current <glossary tag="handler">handler</glossary> finishes <glossary tag="execute">executing</glossary>. It retains its <function tag="value">value</function> only for the current <glossary tag="handler">handler</glossary>, and setting it in one <glossary tag="handler">handler</glossary> does not affect its value in other <glossary tag="handler">handlers</glossary> it <glossary tag="call">calls</glossary>.</p>
  </description>
</doc>