<?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 does the date and time gets saved in ArcPad? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544409#M3945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just enter FormatDateTime(Now(),vbGeneralDate) for the default value in the Date field (in Arcpad Studio - Arcpad 8+). Date data types do not work (I can't figure it out anyway), and you must use a regular 'EDIT' box, and set required on (at least it's a good idea).&lt;BR /&gt;&lt;BR /&gt;If you don't have Arcpad Studio -&amp;nbsp; open the APL file in a text editor (notepad or I use NoteTab Pro), and look for This sort of language:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;DATETIME name="NDATETIME" x="46" width="80" height="14"&lt;BR /&gt; defaultvalue="FormatDateTime(GPS.Properties( "UTC" ),vbGeneralDate)" &lt;BR /&gt;tooltip="" &lt;BR /&gt;tabstop="true" &lt;BR /&gt;border="true" &lt;BR /&gt;readonly="true" &lt;BR /&gt;field="NDATETIME" &lt;BR /&gt;allownulls="false"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Add the defaultvalue statement - and it should work!&lt;BR /&gt;&lt;BR /&gt;You'll notice I used GPS time (which will be in Greenwich Mean Time - which is easily converted if you desire).&amp;nbsp; It prevents users from messing up by either not properly setting the field computers time - or setting it incorrectly.&amp;nbsp; To use the computer or system time - use this: FormatDateTime(Now(),vbGeneralDate) instead.&amp;nbsp; All sorts of formats are possible - just google the FormatDateTime function in Visual Basic (VB).&lt;BR /&gt;&lt;BR /&gt;By the way - the Arcpad studio part of Arcpad is worth the money to upgrade!&amp;nbsp; Of course I think it always should have been included...&amp;nbsp; Once you get started you won't stop creating custom forms and menus, and buttons, and....&amp;nbsp; And using it will allow you to more easily learn VB (if you have some programming knowledge).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This really works man, thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Nov 2013 20:53:41 GMT</pubDate>
    <dc:creator>santiagoarango</dc:creator>
    <dc:date>2013-11-30T20:53:41Z</dc:date>
    <item>
      <title>How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544404#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions is are newbie questions related to Date and Timestamp fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Is there a way to declare a field that will be populated with the date and the time when the point gets created? Automatically populated? &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;??? Do I need to add any background code in VB or VB.net to handle this field ?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;??? Does it work on the GPS device or only in my computer ?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;??? Does it work with dfb files or do I need a personal geodatabase?&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Please advise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 23:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544404#M3940</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2010-09-21T23:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544405#M3941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assuming that you have an editform for the points you're collecting, and a field of type "date" in the feature class you're using, you can simply put...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Fields("your date/time field name, include the quotes").value = Now&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...into the "onunload" event of your form. It'll be totally out of sight / out of mind for the user, and you don't need to have a edit box or date box or anything on the actual form. It will work for files such as shapefile / GDB feature classes (whose editforms pop up when you edit a feature), but if you wanted to use a .dbf it gets more complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 17:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544405#M3941</guid>
      <dc:creator>EricHajek1</dc:creator>
      <dc:date>2010-09-22T17:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544406#M3942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any manual or tutorial that explains how to add vbscript events to a form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please advise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 00:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544406#M3942</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2010-09-24T00:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544407#M3943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the Month/Day/Hour/Minute/Second to generate a unique ID for all new features in my applications. This is the code I use and call it from a custom, add new feature tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim tmpTemp &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = Right(String(4,48) &amp;amp; Year(Now()),4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = tmpTemp &amp;amp; Right(String(4,48) &amp;amp; Month(Now()),2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = tmpTemp &amp;amp; Right(String(4,48) &amp;amp; Day(Now()),2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = tmpTemp &amp;amp; Right(String(4,48) &amp;amp; Hour(Now()),2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = tmpTemp &amp;amp; Right(String(4,48) &amp;amp; Minute(Now()),2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; tmpTemp = tmpTemp &amp;amp; Right(String(4,48) &amp;amp; Second(Now()),2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kyle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 12:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544407#M3943</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-09-24T12:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544408#M3944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've having a problem auto-populating my field w/ a date/time.&amp;nbsp; It is a "date" data type and I put this in, as suggested earlier in this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;onunload = ThisEvent.Object.Fields("RECORDDATE").value = Now&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I reopen the form the date field is still blank/unchecked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get the info to display in a text box but I'd prefer to auto-populate my existing date field type instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 19:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544408#M3944</guid>
      <dc:creator>JasonTrook</dc:creator>
      <dc:date>2011-06-24T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How does the date and time gets saved in ArcPad?</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544409#M3945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just enter FormatDateTime(Now(),vbGeneralDate) for the default value in the Date field (in Arcpad Studio - Arcpad 8+). Date data types do not work (I can't figure it out anyway), and you must use a regular 'EDIT' box, and set required on (at least it's a good idea).&lt;BR /&gt;&lt;BR /&gt;If you don't have Arcpad Studio -&amp;nbsp; open the APL file in a text editor (notepad or I use NoteTab Pro), and look for This sort of language:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;DATETIME name="NDATETIME" x="46" width="80" height="14"&lt;BR /&gt; defaultvalue="FormatDateTime(GPS.Properties( "UTC" ),vbGeneralDate)" &lt;BR /&gt;tooltip="" &lt;BR /&gt;tabstop="true" &lt;BR /&gt;border="true" &lt;BR /&gt;readonly="true" &lt;BR /&gt;field="NDATETIME" &lt;BR /&gt;allownulls="false"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Add the defaultvalue statement - and it should work!&lt;BR /&gt;&lt;BR /&gt;You'll notice I used GPS time (which will be in Greenwich Mean Time - which is easily converted if you desire).&amp;nbsp; It prevents users from messing up by either not properly setting the field computers time - or setting it incorrectly.&amp;nbsp; To use the computer or system time - use this: FormatDateTime(Now(),vbGeneralDate) instead.&amp;nbsp; All sorts of formats are possible - just google the FormatDateTime function in Visual Basic (VB).&lt;BR /&gt;&lt;BR /&gt;By the way - the Arcpad studio part of Arcpad is worth the money to upgrade!&amp;nbsp; Of course I think it always should have been included...&amp;nbsp; Once you get started you won't stop creating custom forms and menus, and buttons, and....&amp;nbsp; And using it will allow you to more easily learn VB (if you have some programming knowledge).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This really works man, thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Nov 2013 20:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-does-the-date-and-time-gets-saved-in-arcpad/m-p/544409#M3945</guid>
      <dc:creator>santiagoarango</dc:creator>
      <dc:date>2013-11-30T20:53:41Z</dc:date>
    </item>
  </channel>
</rss>

